forward released too

svn path=/trunk/KDE/kdelibs/; revision=1034804
This commit is contained in:
Marco Martin 2009-10-13 15:29:23 +00:00
parent 59296fb520
commit 2bdb8bc405
2 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,7 @@ ToolButton::ToolButton(QGraphicsWidget *parent)
QToolButton *native = new QToolButton; QToolButton *native = new QToolButton;
connect(native, SIGNAL(clicked()), this, SIGNAL(clicked())); connect(native, SIGNAL(clicked()), this, SIGNAL(clicked()));
connect(native, SIGNAL(pressed()), this, SIGNAL(pressed())); connect(native, SIGNAL(pressed()), this, SIGNAL(pressed()));
connect(native, SIGNAL(released()), this, SIGNAL(released()));
setWidget(native); setWidget(native);
native->setAttribute(Qt::WA_NoSystemBackground); native->setAttribute(Qt::WA_NoSystemBackground);
native->setAutoRaise(true); native->setAutoRaise(true);

View File

@ -159,6 +159,10 @@ Q_SIGNALS:
* @since 4.4 * @since 4.4
*/ */
void pressed(); void pressed();
/**
* @since 4.4
*/
void released();
protected: protected:
void paint(QPainter *painter, void paint(QPainter *painter,