Commit c8c93db9 authored by Laurent Montel's avatar Laurent Montel 😁

Create widget

parent db216cfd
set(sieveeditor_regexpeditor_SRCS
main.cpp
regexpeditorwidget.cpp
)
add_executable(sieveeditorregexpeditor_gui ${sieveeditor_regexpeditor_SRCS})
......
......@@ -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;
}
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
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)
{
}
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment