summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2008-06-27 15:07:00 +0200
committerSamuel Rødal <sroedal@trolltech.com>2008-06-27 15:07:00 +0200
commit91a53b4f309dc57605837be78d5e6f5095cfcc9d (patch)
tree6792916302b21201e4b602447d4bdaa1c0ef641f
parent4c47dc69ef08fa1a6a4011f98a86553144a27492 (diff)
Use clicked signal instead of pressed for the push buttons.
-rw-r--r--openglscene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/openglscene.cpp b/openglscene.cpp
index 4e52f1b..38dbd5a 100644
--- a/openglscene.cpp
+++ b/openglscene.cpp
@@ -32,7 +32,7 @@ OpenGLScene::OpenGLScene()
QWidget *controls = createDialog(tr("Controls"));
m_modelButton = new QPushButton(tr("Load model"));
- connect(m_modelButton, SIGNAL(pressed()), this, SLOT(loadModel()));
+ connect(m_modelButton, SIGNAL(clicked()), this, SLOT(loadModel()));
#ifndef QT_NO_CONCURRENT
connect(&m_modelLoader, SIGNAL(finished()), this, SLOT(modelLoaded()));
#endif
@@ -47,11 +47,11 @@ OpenGLScene::OpenGLScene()
controls->layout()->addWidget(normals);
QPushButton *colorButton = new QPushButton(tr("Choose model color"));
- connect(colorButton, SIGNAL(pressed()), this, SLOT(setModelColor()));
+ connect(colorButton, SIGNAL(clicked()), this, SLOT(setModelColor()));
controls->layout()->addWidget(colorButton);
QPushButton *backgroundButton = new QPushButton(tr("Choose background color"));
- connect(backgroundButton, SIGNAL(pressed()), this, SLOT(setBackgroundColor()));
+ connect(backgroundButton, SIGNAL(clicked()), this, SLOT(setBackgroundColor()));
controls->layout()->addWidget(backgroundButton);
QWidget *statistics = createDialog(tr("Model info"));