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
This commit is contained in:
Dominik Wenger 2008-09-03 19:24:50 +00:00
parent ca0de82cec
commit 254fa65c7b
26 changed files with 360 additions and 186 deletions

View file

@ -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));
}