VAPOR3 3.9.4
QSliderEdit.h
Go to the documentation of this file.
1#ifndef QSLIDEREDIT_H
2#define QSLIDEREDIT_H
3
4#include <QWidget>
5#include <QDoubleValidator>
6
7#include "Combo.h"
8
9namespace Ui {
10class QSliderEdit;
11}
12
13class QSliderEdit : public QWidget {
14 Q_OBJECT
15
16public:
17 explicit QSliderEdit(QWidget *parent = 0);
19
20 void SetLabel(const QString &text);
21 void SetDecimals(int dec); // how many digits after the decimal point
22 void SetExtents(double min, double max);
24 void SetValue(double);
25 void SetIntType(bool); // default is false, which means double type
26
27signals:
28 // This is the signal a QSliderEdit emits.
29 void valueChanged(double);
30 void valueChanged(int);
31
32private slots:
33 void _comboValueChanged(double);
34 void _comboValueChanged(int);
35
36private:
37 Ui::QSliderEdit *_ui;
38 Combo * _combo; // keeps the slider and lineEdit in sync
39};
40
41#endif // QSLIDEREDIT_H
Definition: Combo.h:22
QSliderEdit(QWidget *parent=0)
void SetValue(double)
void SetExtents(double min, double max)
void SetLabel(const QString &text)
void valueChanged(int)
void SetIntType(bool)
void SetDecimals(int dec)
double GetCurrentValue()
void valueChanged(double)
Definition: QRange.h:6