diff --git a/src/editor/guidededitorelementview.cpp b/src/editor/guidededitorelementview.cpp index 6cfca84..c2ffffa 100644 --- a/src/editor/guidededitorelementview.cpp +++ b/src/editor/guidededitorelementview.cpp @@ -3,6 +3,8 @@ #include #include #include +#include +#include GuidedEditorElementView::GuidedEditorElementView(QWidget* parent) : QWidget(parent) @@ -35,7 +37,8 @@ void GuidedEditorElementView::setElement(GuidedEditorElement& element) case ElementType::INPUT: this->input = std::make_unique(this); this->layout->addWidget(input.get()); - this->input->setValidator(std::make_shared(element.getSyntaxregex(), input.get()).get()); + + this->input->setValidator(std::make_shared(QRegExp(element.getSyntaxregex())).get()); break; case ElementType::STATIC: this->staticLabel = std::make_unique(this);