Add wpseditor, the Google Summer of Code 2008 project of Rostislav Chekan. Closes...
[kugel-rb.git] / utils / wpseditor / gui / src / slider.cpp
blob7e3c9a942c169900471dce7dc3d01cab620b8a8e
1 #include "slider.h"
2 #include <QDebug>
3 //
4 Slider::Slider(QWidget *parent, QString caption, int min, int max ):QDialog(parent) {
5 setupUi ( this );
6 connect(horslider, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));
7 connect(this, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int)));
8 setWindowTitle(caption);
9 horslider->setMinimum(min);
10 horslider->setMaximum(max);
13 int Slider::value() {
14 return horslider->value();
16 void Slider::slotValueChanged(int step) {
17 setWindowTitle(tr("Value =%1 ").arg(step));