diff --git a/widgets/toolbutton.cpp b/widgets/toolbutton.cpp index 64146eb8d..d79f0a7db 100644 --- a/widgets/toolbutton.cpp +++ b/widgets/toolbutton.cpp @@ -170,6 +170,7 @@ ToolButton::ToolButton(QGraphicsWidget *parent) { QToolButton *native = new QToolButton; connect(native, SIGNAL(clicked()), this, SIGNAL(clicked())); + connect(native, SIGNAL(pressed()), this, SIGNAL(pressed())); setWidget(native); native->setAttribute(Qt::WA_NoSystemBackground); native->setAutoRaise(true); diff --git a/widgets/toolbutton.h b/widgets/toolbutton.h index 2692d1129..5f2519041 100644 --- a/widgets/toolbutton.h +++ b/widgets/toolbutton.h @@ -155,6 +155,10 @@ public: Q_SIGNALS: void clicked(); + /** + * @since 4.4 + */ + void pressed(); protected: void paint(QPainter *painter,