#include <ValidatorComboBox.hpp>
Definition at line 9 of file ValidatorComboBox.hpp.
◆ ValidatorComboBox()
dbe::ValidatorComboBox::ValidatorComboBox |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Including QT Headers.
Including DBE
Definition at line 7 of file ValidatorComboBox.cpp.
8 : QComboBox ( parent ),
11{
12 connect ( this, SIGNAL ( editTextChanged ( const QString & ) ), this,
14 connect ( this, SIGNAL ( activated ( const QString & ) ), this,
16 connect ( this, SIGNAL ( currentIndexChanged ( int ) ), this,
18}
void ChangeDetected(const QString &StringChange)
void CheckDefaults(int Default)
void TryValidate(const QString &ValidateString)
◆ ~ValidatorComboBox()
dbe::ValidatorComboBox::~ValidatorComboBox |
( |
| ) |
|
◆ ChangeDetected
void dbe::ValidatorComboBox::ChangeDetected |
( |
const QString & | StringChange | ) |
|
|
privateslot |
◆ CheckDefaults
void dbe::ValidatorComboBox::CheckDefaults |
( |
int | Default | ) |
|
|
privateslot |
◆ CompareDefaults
bool dbe::ValidatorComboBox::CompareDefaults |
( |
| ) |
|
|
privateslot |
Definition at line 103 of file ValidatorComboBox.cpp.
104{
106 {
107 return false;
108 }
109
110 if (
Default == this->currentText() )
111 {
112 return true;
113 }
114
115 return false;
116}
◆ GetDataList()
QStringList dbe::ValidatorComboBox::GetDataList |
( |
| ) |
|
◆ IsChanged()
bool dbe::ValidatorComboBox::IsChanged |
( |
| ) |
const |
◆ IsValid()
bool dbe::ValidatorComboBox::IsValid |
( |
| ) |
const |
◆ TryValidate
void dbe::ValidatorComboBox::TryValidate |
( |
const QString & | ValidateString | ) |
|
|
slot |
Definition at line 47 of file ValidatorComboBox.cpp.
48{
49 QString Tmp = ValidateString;
51
52 if ( this->validator() != nullptr )
53 {
54 if ( this->validator()->
validate ( Tmp, index ) == QValidator::Acceptable )
55 {
57
59 {
61 }
62 else
63 {
64 this->setPalette ( QApplication::palette ( this ) );
65 }
66 }
67 else if ( this->validator()->
validate ( Tmp, index ) == QValidator::Intermediate )
68 {
71 }
72 }
73 else
74 {
76 {
78 }
79 else
80 {
81 this->setPalette ( QApplication::palette ( this ) );
82 }
83 }
84}
static QPalette LoadedDefault
static QPalette WarningStatusBarPallete
◆ ValueWasChanged
void dbe::ValidatorComboBox::ValueWasChanged |
( |
| ) |
|
|
signal |
◆ wheelEvent()
void dbe::ValidatorComboBox::wheelEvent |
( |
QWheelEvent * | e | ) |
|
|
private |
◆ DataList
QStringList dbe::ValidatorComboBox::DataList |
|
private |
◆ Default
QString dbe::ValidatorComboBox::Default |
|
private |
◆ Valid
bool dbe::ValidatorComboBox::Valid |
|
private |
◆ ValueChanged
bool dbe::ValidatorComboBox::ValueChanged |
|
private |
The documentation for this class was generated from the following files: