Commit 1964d01d authored by Laurent Montel's avatar Laurent Montel 😁

Add test application

parent 19a93662
set(adblockblockableelementgui_SRCS adblockblockableelementgui.cpp)
add_executable(adblockblockableelementgui ${adblockblockableelementgui_SRCS})
target_link_libraries(adblockblockableelementgui
KF5::MessageViewer Qt5::WebEngine Qt5::WebEngineWidgets
)
/*
Copyright (c) 2016 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, version 2, as
published by the Free Software Foundation.
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; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "adblockblockableelementgui.h"
#include <QVBoxLayout>
#include <QPushButton>
#include <QWebEngineView>
#include <QStandardPaths>
#include <QCommandLineParser>
#include <QApplication>
AdblockBlockableElementGui::AdblockBlockableElementGui(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vbox = new QVBoxLayout(this);
}
AdblockBlockableElementGui::~AdblockBlockableElementGui()
{
}
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QStandardPaths::setTestModeEnabled(true);
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
parser.process(app);
AdblockBlockableElementGui *dialog = new AdblockBlockableElementGui;
dialog->resize(800, 600);
dialog->show();
app.exec();
delete dialog;
return 0;
}
/*
Copyright (c) 2016 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, version 2, as
published by the Free Software Foundation.
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; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ADBLOCKBLOCKABLEELEMENTGUI_H
#define ADBLOCKBLOCKABLEELEMENTGUI_H
#include <QWidget>
class AdblockBlockableElementGui : public QWidget
{
Q_OBJECT
public:
explicit AdblockBlockableElementGui(QWidget *parent = Q_NULLPTR);
~AdblockBlockableElementGui();
};
#endif // ADBLOCKBLOCKABLEELEMENTGUI_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