Emit the clicked() signal when clicked.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678145
This commit is contained in:
parent
fb8d5d353f
commit
0ffa2dcc29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user