DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ValidatorComboBox.hpp
Go to the documentation of this file.
1#ifndef VALIDATORCOMBOBOX_H
2#define VALIDATORCOMBOBOX_H
3
4#include <QComboBox>
5
6namespace dbe
7{
8
9class ValidatorComboBox: public QComboBox
10{
11 Q_OBJECT
12public:
13 explicit ValidatorComboBox ( QWidget * parent = nullptr );
15 bool IsValid() const;
16 bool IsChanged() const;
17 QStringList GetDataList();
18private:
19 QStringList DataList;
20 QString Default;
21 bool Valid;
23 void wheelEvent ( QWheelEvent * e );
24public slots:
25 void TryValidate ( const QString & ValidateString );
26private slots:
27 void ChangeDetected ( const QString & StringChange );
28 void CheckDefaults ( int Default );
29 bool CompareDefaults();
30signals:
32};
33
34} // namespace dbe
35#endif // VALIDATORCOMBOBOX_H
void ChangeDetected(const QString &StringChange)
void wheelEvent(QWheelEvent *e)
void CheckDefaults(int Default)
ValidatorComboBox(QWidget *parent=nullptr)
Including QT Headers.
void TryValidate(const QString &ValidateString)
Include QT Headers.