Set clear button for field Name.
--HG-- branch : feature
This commit is contained in:
parent
524e98d372
commit
1a73a1f870
|
@ -42,6 +42,10 @@ DialogPiecePath::DialogPiecePath(const VContainer *data, quint32 toolId, QWidget
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
InitOkCancel(ui);
|
InitOkCancel(ui);
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||||
|
ui->lineEditName->setClearButtonEnabled(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogPiecePath::NameChanged);
|
connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogPiecePath::NameChanged);
|
||||||
|
|
||||||
InitPathTypes();
|
InitPathTypes();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user