mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 22:22:33 -05:00
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:
parent
ca0de82cec
commit
254fa65c7b
26 changed files with 360 additions and 186 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue