summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-22 08:12:53 +0200
committerMontel Laurent <[email protected]>2017-05-22 08:19:01 +0200
commitc8c93db9e2b615f2a2be800786d59e77cff87ed2 (patch)
treee879f69cffbeedb246ec65e39631b15a211caee4
parentdb216cfd1289285491e9870f87a607ba8ebf25c6 (diff)
Create widget
-rw-r--r--sieveeditor/regexeditorlineedit/tests/CMakeLists.txt1
-rw-r--r--sieveeditor/regexeditorlineedit/tests/main.cpp10
-rw-r--r--sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp28
-rw-r--r--sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h34
4 files changed, 68 insertions, 5 deletions
diff --git a/sieveeditor/regexeditorlineedit/tests/CMakeLists.txt b/sieveeditor/regexeditorlineedit/tests/CMakeLists.txt
index 6c3b399..96cb6ed 100644
--- a/sieveeditor/regexeditorlineedit/tests/CMakeLists.txt
+++ b/sieveeditor/regexeditorlineedit/tests/CMakeLists.txt
@@ -1,5 +1,6 @@
set(sieveeditor_regexpeditor_SRCS
main.cpp
+ regexpeditorwidget.cpp
)
add_executable(sieveeditorregexpeditor_gui ${sieveeditor_regexpeditor_SRCS})
diff --git a/sieveeditor/regexeditorlineedit/tests/main.cpp b/sieveeditor/regexeditorlineedit/tests/main.cpp
index e7ef87d..ec05376 100644
--- a/sieveeditor/regexeditorlineedit/tests/main.cpp
+++ b/sieveeditor/regexeditorlineedit/tests/main.cpp
@@ -20,7 +20,7 @@
#include <QStandardPaths>
#include <QCommandLineParser>
#include <QApplication>
-//#include "selectimapwidgettest.h"
+#include "regexpeditorwidget.h"
int main(int argc, char **argv)
{
@@ -31,10 +31,10 @@ int main(int argc, char **argv)
parser.addHelpOption();
parser.process(app);
- //SelectImapWidgetTest *w = new SelectImapWidgetTest;
- //w->resize(800, 600);
- //w->show();
+ RegExpEditorWidget *w = new RegExpEditorWidget;
+ w->resize(800, 600);
+ w->show();
app.exec();
- //delete w;
+ delete w;
return 0;
}
diff --git a/sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp b/sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp
new file mode 100644
index 0000000..305ff05
--- /dev/null
+++ b/sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp
@@ -0,0 +1,28 @@
+/*
+ Copyright (C) 2017 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "regexpeditorwidget.h"
+#include <QHBoxLayout>
+
+
+RegExpEditorWidget::RegExpEditorWidget(QWidget *parent)
+ : QWidget(parent)
+{
+
+}
diff --git a/sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h b/sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h
new file mode 100644
index 0000000..2455193
--- /dev/null
+++ b/sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2017 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef REGEXPEDITORWIDGET_H
+#define REGEXPEDITORWIDGET_H
+
+#include <QWidget>
+
+class RegExpEditorWidget : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit RegExpEditorWidget(QWidget *parent = nullptr);
+ ~RegExpEditorWidget() = default;
+
+};
+
+#endif // REGEXPEDITORWIDGET_H