KDELibs4Support
kpushbutton.cpp
39 KPushButtonPrivate(KPushButton *_parent) : parent(_parent), m_dragEnabled(false), decorator(nullptr)
160 const bool useIcons = style()->styleHint(QStyle::SH_DialogButtonBox_ButtonsHaveIcons, nullptr, this);
CE_PushButton
StandardItem
QPoint pos() const const
virtual QSize sizeHint() const const override
void setMenu(QMenu *menu)
QMenu * delayedMenu()
returns a delayed popup menu since menu() isn't virtual
Definition: kpushbutton.cpp:214
void clicked(bool checked)
void pressed()
void paintEvent(QPaintEvent *) override
Reimplemented to add arrow for delayed menu.
Definition: kpushbutton.cpp:247
AuthStatus
HasMenu
void drawControl(QStyle::ControlElement ce, const QStyleOption &option)
KGuiItem guiItem(StandardItem id)
LeftButton
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setDelayedMenu(QMenu *delayed_menu)
Sets a delayed popup menu for consistency, since menu() isn't virtual.
Definition: kpushbutton.cpp:209
virtual void startDrag()
Starts a drag (dragCopy() by default) using dragObject()
Definition: kpushbutton.cpp:201
QSize sizeHint() const override
Reimplemented to add arrow for delayed menu.
Definition: kpushbutton.cpp:234
void setDown(bool)
static void assign(QPushButton *button, const KGuiItem &item)
KAuth::Action authAction() const
Returns the action object associated with this button, or 0 if it does not have one.
Definition: kpushbutton.cpp:219
QStyle * style() const const
void mouseMoveEvent(QMouseEvent *) override
Reimplemented to add drag-support.
Definition: kpushbutton.cpp:181
void setGuiItem(const KGuiItem &item)
Sets the KGuiItem for this button.
Definition: kpushbutton.cpp:137
Qt::MouseButtons buttons() const const
KStandardGuiItem::StandardItem guiItem() const
Reads the standard KGuiItem for this button.
Definition: kpushbutton.cpp:148
Q_SCRIPTABLE CaptureState status()
Get the current networking status If the result is Unknown, the backend may be unconfigured or otherw...
Definition: networking.cpp:40
void authorized(const KAuth::Action &action)
Signal emitted when the button is triggered and authorized.
virtual QDrag * dragObject()
Reimplement this and return the QDrag object that should be used for the drag.
Definition: kpushbutton.cpp:196
virtual int styleHint(QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const const=0
SH_ToolButton_PopupDelay
void initStyleOption(QStyleOptionButton *option) const const
startDragDistance
virtual void mousePressEvent(QMouseEvent *e) override
void setAuthAction(const KAuth::Action &action)
Sets the action object associated with this button.
Definition: kpushbutton.cpp:229
void mousePressEvent(QMouseEvent *) override
Reimplemented to add drag-support.
Definition: kpushbutton.cpp:173
Qt::DropAction start(Qt::DropActions request)
virtual void mouseMoveEvent(QMouseEvent *e) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:54:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:54:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.