Validation names.
--HG-- branch : feature
This commit is contained in:
parent
180af51f99
commit
c2c64921ab
|
@ -33,6 +33,7 @@
|
|||
#include "dialogs/dialognewmeasurements.h"
|
||||
#include "../vpatterndb/calculator.h"
|
||||
#include "../ifc/ifcdef.h"
|
||||
#include "../qmuparser/qmudef.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QFileInfo>
|
||||
|
@ -870,6 +871,8 @@ void TMainWindow::InitWindow()
|
|||
ui->actionReadOnly->setEnabled(true);
|
||||
ui->actionSaveAs->setEnabled(true);
|
||||
|
||||
ui->lineEditName->setValidator( new QRegularExpressionValidator(QRegularExpression(NameRegExp())) );
|
||||
|
||||
connect(ui->toolButtonRemove, &QToolButton::clicked, this, &TMainWindow::Remove);
|
||||
connect(ui->toolButtonUp, &QToolButton::clicked, this, &TMainWindow::MoveUp);
|
||||
connect(ui->toolButtonDown, &QToolButton::clicked, this, &TMainWindow::MoveDown);
|
||||
|
|
Loading…
Reference in New Issue
Block a user