Commit 9cd3d952 authored by Laurent Montel's avatar Laurent Montel 😁

Add pagepreview

parent 8bc80934
......@@ -17,6 +17,7 @@ if (WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT)
if (Poppler_Qt5_FOUND)
set(libwebengineviewer_print_SRCS
print/printpreviewdialog.cpp
print/printpreviewpageviewer.cpp
)
set(poppler_lib Poppler::Qt5)
endif()
......
......@@ -16,6 +16,11 @@
*/
#include "printpreviewdialog.h"
#include "printpreviewpageviewer.h"
#include <KLocalizedString>
#include <QVBoxLayout>
#include <QDialogButtonBox>
using namespace WebEngineViewer;
......
/*
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 "printpreviewpageviewer.h"
using namespace WebEngineViewer;
PrintPreviewPageViewer::PrintPreviewPageViewer(QWidget *parent)
: QScrollArea(parent)
{
}
PrintPreviewPageViewer::~PrintPreviewPageViewer()
{
}
/*
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 PRINTPREVIEWPAGEVIEWER_H
#define PRINTPREVIEWPAGEVIEWER_H
#include <QScrollArea>
namespace WebEngineViewer
{
class PrintPreviewPageViewer : public QScrollArea
{
Q_OBJECT
public:
explicit PrintPreviewPageViewer(QWidget *parent = Q_NULLPTR);
~PrintPreviewPageViewer();
};
}
#endif // PRINTPREVIEWPAGEVIEWER_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