summaryrefslogtreecommitdiffstats
path: root/mazescene.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2008-11-27 20:18:41 +0100
committerSamuel Rødal <sroedal@trolltech.com>2008-11-27 20:18:41 +0100
commitf21ba73b2c1896faca14001c256c036e7636ea9b (patch)
tree909e66f0596bbd9374061195481ea7615de76ec0 /mazescene.cpp
parentf2fb35cc3a227e8966bab9a9380fe9a543874eb6 (diff)
Toggle doors on clicked signal, not pressed signal.
Diffstat (limited to 'mazescene.cpp')
-rw-r--r--mazescene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mazescene.cpp b/mazescene.cpp
index f4a3c73..af74b50 100644
--- a/mazescene.cpp
+++ b/mazescene.cpp
@@ -220,7 +220,7 @@ WallItem::WallItem(MazeScene *scene, const QPointF &a, const QPointF &b, int typ
if (type == 3 && a.y() == b.y()) {
QWidget *widget = new QWidget;
QPushButton *button = new QPushButton("Open Sesame", widget);
- QObject::connect(button, SIGNAL(pressed()), scene, SLOT(toggleDoors()));
+ QObject::connect(button, SIGNAL(clicked()), scene, SLOT(toggleDoors()));
widget->setLayout(new QVBoxLayout);
widget->layout()->addWidget(button);
widget->setPalette(palette);