From 91e7b195bfdf6592b49766b3b8adfe7849417963 Mon Sep 17 00:00:00 2001 From: Marcel Otte Date: Sun, 10 Jan 2016 18:06:10 +0100 Subject: [PATCH] fixed compile error --- src/editor/guidededitorelementview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);