diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2008-11-27 20:18:41 +0100 |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2008-11-27 20:18:41 +0100 |
commit | f21ba73b2c1896faca14001c256c036e7636ea9b (patch) | |
tree | 909e66f0596bbd9374061195481ea7615de76ec0 /mazescene.cpp | |
parent | f2fb35cc3a227e8966bab9a9380fe9a543874eb6 (diff) |
Toggle doors on clicked signal, not pressed signal.
Diffstat (limited to 'mazescene.cpp')
-rw-r--r-- | mazescene.cpp | 2 |
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); |