Skip to content
Snippets Groups Projects
Commit fbe1e3ef authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

select on start

parent 25b42ae1
No related branches found
No related tags found
1 merge request!2155Create and store snapshots of parameter tree (#792)
......@@ -42,6 +42,7 @@ public:
QString dateTime = QDateTime::currentDateTime().toString("< dd.MM.yyyy | hh:mm:ss >");
auto* lineEdit = new QLineEdit("State at " + dateTime);
lineEdit->selectAll();
mainLayout->addWidget(lineEdit);
connect(lineEdit, &QLineEdit::textEdited, [this, lineEdit] {
::resizeLineEditToContents(lineEdit);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment