Set clear button for field Name.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-23 18:43:31 +02:00
parent 524e98d372
commit 1a73a1f870

View File

@ -42,6 +42,10 @@ DialogPiecePath::DialogPiecePath(const VContainer *data, quint32 toolId, QWidget
ui->setupUi(this);
InitOkCancel(ui);
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
ui->lineEditName->setClearButtonEnabled(true);
#endif
connect(ui->lineEditName, &QLineEdit::textChanged, this, &DialogPiecePath::NameChanged);
InitPathTypes();