diff options
| author | Dominik Wenger <domonoky@googlemail.com> | 2008-09-03 19:24:50 +0000 |
|---|---|---|
| committer | Dominik Wenger <domonoky@googlemail.com> | 2008-09-03 19:24:50 +0000 |
| commit | 254fa65c7b75f61147186d9f9146b89ee11b2b26 (patch) | |
| tree | bb5355f04275394ebfd2aa200abc44b188c08df9 /utils/wpseditor/gui/src/slider.cpp | |
| parent | ca0de82cec434fcd4af827ff1a1d473667249338 (diff) | |
| download | rockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.zip rockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.tar.gz rockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.tar.bz2 rockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.tar.xz | |
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.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/wpseditor/gui/src/slider.cpp b/utils/wpseditor/gui/src/slider.cpp index 7e3c9a9..4cbc714 100644 --- a/utils/wpseditor/gui/src/slider.cpp +++ b/utils/wpseditor/gui/src/slider.cpp @@ -1,11 +1,11 @@ #include "slider.h" #include <QDebug> // -Slider::Slider(QWidget *parent, QString caption, int min, int max ):QDialog(parent) { +Slider::Slider(QWidget *parent, QString caption, int min, int max ):QDialog(parent),mCaption(caption) { setupUi ( this ); connect(horslider, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int))); connect(this, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int))); - setWindowTitle(caption); + setWindowTitle(mCaption); horslider->setMinimum(min); horslider->setMaximum(max); } @@ -14,7 +14,8 @@ int Slider::value() { return horslider->value(); } void Slider::slotValueChanged(int step) { - setWindowTitle(tr("Value =%1 ").arg(step)); + setWindowTitle(tr("%1 = %2 ").arg(mCaption).arg(step)); } + |