diff options
-rw-r--r-- | mazescene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mazescene.cpp b/mazescene.cpp index bab951e..b51d95c 100644 --- a/mazescene.cpp +++ b/mazescene.cpp @@ -225,7 +225,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); |