Commit 8ca6c356 authored by Laurent Montel's avatar Laurent Montel 😁

Add printconfigurewidget

parent d996637f
......@@ -21,6 +21,7 @@ if (WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT)
print/printpreviewpagewidget.cpp
print/printwebengineviewjob.cpp
print/printconfiguredialog.cpp
print/printconfigurewidget.cpp
)
set(poppler_lib Poppler::Qt5)
endif()
......
......@@ -27,3 +27,9 @@ ecm_add_test(printconfiguredialogtest.cpp ../printconfiguredialog.cpp
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n
)
ecm_add_test(printconfigurewidgettest.cpp ../printconfigurewidget.cpp
TEST_NAME printconfigurewidgettest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n
)
/*
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 "printconfigurewidgettest.h"
#include <QTest>
PrintConfigureWidgetTest::PrintConfigureWidgetTest(QObject *parent)
: QObject(parent)
{
}
PrintConfigureWidgetTest::~PrintConfigureWidgetTest()
{
}
QTEST_MAIN(PrintConfigureWidgetTest)
/*
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 PRINTCONFIGUREWIDGETTEST_H
#define PRINTCONFIGUREWIDGETTEST_H
#include <QObject>
class PrintConfigureWidgetTest : public QObject
{
Q_OBJECT
public:
explicit PrintConfigureWidgetTest(QObject *parent = Q_NULLPTR);
~PrintConfigureWidgetTest();
};
#endif // PRINTCONFIGUREWIDGETTEST_H
......@@ -17,6 +17,7 @@
#include "printconfiguredialog.h"
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <KLocalizedString>
using namespace WebEngineViewer;
......@@ -24,6 +25,8 @@ using namespace WebEngineViewer;
PrintConfigureDialog::PrintConfigureDialog(QWidget *parent)
: QDialog(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
}
......
/*
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 "printconfigurewidget.h"
using namespace WebEngineViewer;
PrintConfigureWidget::PrintConfigureWidget(QWidget *parent)
: QWidget(parent)
{
}
PrintConfigureWidget::~PrintConfigureWidget()
{
}
/*
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 PRINTCONFIGUREWIDGET_H
#define PRINTCONFIGUREWIDGET_H
#include <QWidget>
namespace WebEngineViewer
{
class PrintConfigureWidget : public QWidget
{
Q_OBJECT
public:
explicit PrintConfigureWidget(QWidget *parent = Q_NULLPTR);
~PrintConfigureWidget();
};
}
#endif // PRINTCONFIGUREWIDGET_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