Emit the clicked() signal when clicked.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678145
This commit is contained in:
Thomas Georgiou 2007-06-20 19:13:30 +00:00
parent fb8d5d353f
commit 0ffa2dcc29

View File

@ -210,9 +210,10 @@ void PushButton::mousePressEvent ( QGraphicsSceneMouseEvent * event )
void PushButton::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event )
{
event->accept();
if (d->state == PushButton::Pressed)
emit clicked();
d->state = PushButton::Released;
update();
// emit clicked();
}
QSize PushButton::sizeHint() const