summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/slider.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-09-03 19:24:50 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-09-03 19:24:50 +0000
commit254fa65c7b75f61147186d9f9146b89ee11b2b26 (patch)
treebb5355f04275394ebfd2aa200abc44b188c08df9 /utils/wpseditor/gui/src/slider.cpp
parentca0de82cec434fcd4af827ff1a1d473667249338 (diff)
downloadrockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.tar.gz
rockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.zip
WpsEditor: commit FS#9344 by Rostislav Chekan - multitarget support (only colour targets for now)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18399 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/wpseditor/gui/src/slider.cpp')
-rw-r--r--utils/wpseditor/gui/src/slider.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/wpseditor/gui/src/slider.cpp b/utils/wpseditor/gui/src/slider.cpp
index 7e3c9a942c..4cbc714507 100644
--- a/utils/wpseditor/gui/src/slider.cpp
+++ b/utils/wpseditor/gui/src/slider.cpp
@@ -1,11 +1,11 @@
1#include "slider.h" 1#include "slider.h"
2#include <QDebug> 2#include <QDebug>
3// 3//
4Slider::Slider(QWidget *parent, QString caption, int min, int max ):QDialog(parent) { 4Slider::Slider(QWidget *parent, QString caption, int min, int max ):QDialog(parent),mCaption(caption) {
5 setupUi ( this ); 5 setupUi ( this );
6 connect(horslider, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int))); 6 connect(horslider, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));
7 connect(this, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int))); 7 connect(this, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int)));
8 setWindowTitle(caption); 8 setWindowTitle(mCaption);
9 horslider->setMinimum(min); 9 horslider->setMinimum(min);
10 horslider->setMaximum(max); 10 horslider->setMaximum(max);
11} 11}
@@ -14,7 +14,8 @@ int Slider::value() {
14 return horslider->value(); 14 return horslider->value();
15} 15}
16void Slider::slotValueChanged(int step) { 16void Slider::slotValueChanged(int step) {
17 setWindowTitle(tr("Value =%1 ").arg(step)); 17 setWindowTitle(tr("%1 = %2 ").arg(mCaption).arg(step));
18} 18}
19 19
20 20
21