summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-05-11 06:49:44 +0200
committerMontel Laurent <[email protected]>2016-05-11 06:49:44 +0200
commit1bca4c12b36ee298dbb1d92dcca1a6082a02816e (patch)
treee7d9b933cb76634725ff729a9393378aa04096e2
parentdaf1ce2131d1280bf44004a14f3599af393ab47b (diff)
Add class for printing
-rw-r--r--webengineviewer/src/CMakeLists.txt1
-rw-r--r--webengineviewer/src/print/printwebengineviewjob.cpp32
-rw-r--r--webengineviewer/src/print/printwebengineviewjob.h33
3 files changed, 66 insertions, 0 deletions
diff --git a/webengineviewer/src/CMakeLists.txt b/webengineviewer/src/CMakeLists.txt
index c88f523..8c796f6 100644
--- a/webengineviewer/src/CMakeLists.txt
+++ b/webengineviewer/src/CMakeLists.txt
@@ -19,6 +19,7 @@ if (WEBENGINEVIEWER_PRINTPREVIEW_SUPPORT)
print/printpreviewdialog.cpp
print/printpreviewpageviewer.cpp
print/printpreviewpagewidget.cpp
+ print/printwebengineviewjob.cpp
)
set(poppler_lib Poppler::Qt5)
endif()
diff --git a/webengineviewer/src/print/printwebengineviewjob.cpp b/webengineviewer/src/print/printwebengineviewjob.cpp
new file mode 100644
index 0000000..fa2c399
--- /dev/null
+++ b/webengineviewer/src/print/printwebengineviewjob.cpp
@@ -0,0 +1,32 @@
+/*
+ Copyright (c) 2016 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, 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 "printwebengineviewjob.h"
+
+using namespace WebEngineViewer;
+
+PrintWebEngineViewJob::PrintWebEngineViewJob(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+PrintWebEngineViewJob::~PrintWebEngineViewJob()
+{
+
+}
diff --git a/webengineviewer/src/print/printwebengineviewjob.h b/webengineviewer/src/print/printwebengineviewjob.h
new file mode 100644
index 0000000..311e894
--- /dev/null
+++ b/webengineviewer/src/print/printwebengineviewjob.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (c) 2016 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, 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 PRINTWEBENGINEVIEWJOB_H
+#define PRINTWEBENGINEVIEWJOB_H
+
+#include <QObject>
+namespace WebEngineViewer
+{
+class PrintWebEngineViewJob : public QObject
+{
+ Q_OBJECT
+public:
+ explicit PrintWebEngineViewJob(QObject *parent = Q_NULLPTR);
+ ~PrintWebEngineViewJob();
+};
+}
+#endif // PRINTWEBENGINEVIEWJOB_H