sens.h 367 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef SENS_H
  2. #define SENS_H
  3. #include <QWidget>
  4. class QSlider;
  5. class Sens : public QWidget
  6. {
  7. Q_OBJECT
  8. public:
  9. Sens(QWidget *parent = 0);
  10. int value() const;
  11. void setRange(int minValue,int maxValue);
  12. signals:
  13. void valueChanged(int NewValue);
  14. public slots:
  15. void setValue(int value);
  16. private:
  17. QSlider *slider;
  18. };
  19. #endif // SENS_H