31 #include <QActionEvent> 49 ae->action()->disconnect(
this);
50 if (ae->action() == m_defaultAction)
57 if (ae->action() == m_defaultAction)
58 updateFromAction(m_defaultAction);
69 if (!!m_defaultAction)
75 void ActionPushButton::updateFromAction(
QAction *action)
81 if (buttonText == action->
text())
101 if (m_defaultAction == action)
104 if (!!m_defaultAction && !!m_defaultAction->
menu() && m_defaultAction->
menu() ==
menu())
107 m_defaultAction = action;
111 if (!
actions().contains(action))
113 updateFromAction(action);
118 void ActionPushButton::onActionTriggered()
void triggered(bool checked)
QEvent::Type type() const const
QObject * sender() const const
bool isChecked() const const
bool isVisible() const const
bool isCheckable() const const
QString & replace(int position, int n, QChar after)
void setText(const QString &text)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
bool isEnabled() const const