KDEUI
kpushbutton.cpp
Go to the documentation of this file.
47 KPushButtonPrivate(KPushButton *_parent) : parent(_parent), m_dragEnabled( false ), authAction(0)
KGuiItem guiItem(StandardItem ui_enum)
Returns the gui item for the given identifier.
Definition: kstandardguiitem.cpp:29
KAuth::Action * authAction() const
Returns the action object associated with this button, or 0 if it does not have one.
Definition: kpushbutton.cpp:317
virtual QSize sizeHint() const
Reimplemented to add arrow for delayed menu.
Definition: kpushbutton.cpp:360
int timeout
virtual void paintEvent(QPaintEvent *)
Reimplemented to add arrow for delayed menu.
Definition: kpushbutton.cpp:371
virtual void startDrag()
Starts a drag (dragCopy() by default) using dragObject()
Definition: kpushbutton.cpp:300
KStandardGuiItem::StandardItem guiItem() const
Reads the standard KGuiItem for this button.
Definition: kpushbutton.cpp:234
void setAuthAction(KAuth::Action *action)
Sets the action object associated with this button.
Definition: kpushbutton.cpp:331
static KGlobalSettings * self()
Return the KGlobalSettings singleton.
Definition: kglobalsettings.cpp:188
void setDelayedMenu(QMenu *delayed_menu)
Sets a delayed popup menu for consistency, since menu() isn't virtual.
Definition: kpushbutton.cpp:307
AuthStatus
static bool showIconsOnPushButtons()
This function determines if the user wishes to see icons on the push buttons.
Definition: kglobalsettings.cpp:768
virtual void mouseMoveEvent(QMouseEvent *)
Reimplemented to add drag-support.
Definition: kpushbutton.cpp:278
QString itemType(const QString &type)
virtual QDrag * dragObject()
Reimplement this and return the QDrag object that should be used for the drag.
Definition: kpushbutton.cpp:295
void setGuiItem(const KGuiItem &item)
Sets the KGuiItem for this button.
Definition: kpushbutton.cpp:215
QMenu * delayedMenu()
returns a delayed popup menu since menu() isn't virtual
Definition: kpushbutton.cpp:312
virtual void mousePressEvent(QMouseEvent *)
Reimplemented to add drag-support.
Definition: kpushbutton.cpp:271
static int dndEventDelay()
Returns a threshold in pixels for drag & drop operations.
Definition: kglobalsettings.cpp:227
bool isDragEnabled() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.