diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2019-01-02 17:12:37 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2019-01-02 17:12:37 +0100 |
commit | 0f68de6dcc601cfef295f2b0cb5245b631f75e37 (patch) | |
tree | 724e8a7a81b88aea35b3bcbc76b20698e30b2312 /src/gui | |
parent | 50f56c81fcd68a54819302927fb93a54609107c0 (diff) |
created delimited string validator
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styleeditor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/styleeditor.cpp b/src/gui/styleeditor.cpp index 29192d6..804a12b 100644 --- a/src/gui/styleeditor.cpp +++ b/src/gui/styleeditor.cpp @@ -4,6 +4,7 @@ #include "tikzit.h" #include "styleeditor.h" +#include "delimitedstringvalidator.h" #include "ui_styleeditor.h" StyleEditor::StyleEditor(QWidget *parent) : @@ -18,6 +19,9 @@ StyleEditor::StyleEditor(QWidget *parent) : ui->leftArrow << ui->rightArrow << ui->properties; + DelimitedStringValidator *v = new DelimitedStringValidator(this); + ui->name->setValidator(v); + setWindowIcon(QIcon(":/images/tikzit.png")); _styles = nullptr; _activeStyle = nullptr; |