mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Standardisation of auto widgets
This commit is contained in:
parent
e801f490b3
commit
60ac1550f4
5 changed files with 53 additions and 37 deletions
|
@ -29,11 +29,11 @@ class AutoLineEdit: public QLineEdit
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AutoLineEdit(QWidget *parent = nullptr, bool updateOnChange = false):
|
||||
explicit AutoLineEdit(QWidget * parent = nullptr, bool updateOnChange = false):
|
||||
QLineEdit(parent),
|
||||
field(NULL),
|
||||
strField(NULL),
|
||||
panel(NULL),
|
||||
strField(nullptr),
|
||||
panel(nullptr),
|
||||
lock(false)
|
||||
{
|
||||
if (updateOnChange)
|
||||
|
@ -86,15 +86,15 @@ class AutoLineEdit: public QLineEdit
|
|||
else
|
||||
return;
|
||||
|
||||
emit currentDataChanged();
|
||||
|
||||
if (panel)
|
||||
emit panel->modified();
|
||||
|
||||
emit currentDataChanged();
|
||||
}
|
||||
|
||||
protected:
|
||||
char * field;
|
||||
QString * strField;
|
||||
GenericPanel * panel;
|
||||
bool lock;
|
||||
QString * strField = nullptr;
|
||||
GenericPanel * panel = nullptr;
|
||||
bool lock = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue