summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/gui/src/slider.cpp')
-rw-r--r--utils/wpseditor/gui/src/slider.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/utils/wpseditor/gui/src/slider.cpp b/utils/wpseditor/gui/src/slider.cpp
deleted file mode 100644
index 32b79f5047..0000000000
--- a/utils/wpseditor/gui/src/slider.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Rostilav Checkan
10 * $Id$
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#include "slider.h"
23#include <QDebug>
24//
25Slider::Slider(QWidget *parent, QString caption, int min, int max ):QDialog(parent),mCaption(caption) {
26 setupUi ( this );
27 connect(horslider, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));
28 connect(this, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int)));
29 setWindowTitle(mCaption);
30 horslider->setMinimum(min);
31 horslider->setMaximum(max);
32}
33//
34int Slider::value() {
35 return horslider->value();
36}
37void Slider::slotValueChanged(int step) {
38 setWindowTitle(tr("%1 = %2 ").arg(mCaption).arg(step));
39}
40
41
42