KDEUI
kpushbutton.cpp
Go to the documentation of this file.
47 KPushButtonPrivate(KPushButton *_parent) : parent(_parent), m_dragEnabled( false ), authAction(0)
void setDown(bool)
void setMenu(QMenu *menu)
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
Qt::DropAction start(QFlags< Qt::DropAction > request)
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 mouseMoveEvent(QMouseEvent *e)
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
Qt::MouseButtons buttons() const
static KGlobalSettings * self()
Return the KGlobalSettings singleton.
Definition: kglobalsettings.cpp:188
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setIcon(const QIcon &icon)
void drawControl(QStyle::ControlElement ce, const QStyleOption &option)
void initStyleOption(QStyleOptionButton *option) const
void setEnabled(bool)
void pressed()
bool isEmpty() const
void clicked(bool checked)
virtual void mousePressEvent(QMouseEvent *e)
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)
void setWhatsThis(const QString &)
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
void setText(const QString &text)
QMenu * delayedMenu()
returns a delayed popup menu since menu() isn't virtual
Definition: kpushbutton.cpp:312
const QPoint & pos() const
void setToolTip(const QString &)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.