summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-05 20:36:23 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-05 20:36:23 (GMT)
commit04e47871451f1cb1502140a2309ea016724b194f (patch)
tree0f7f6ab51f1160e2727df756c014f5d778ebb30b
parent2d4a5eae9d7eda2b42d1238ea6dc777fea3d1310 (diff)
Add setPrintElementBackground
-rw-r--r--messageviewer/src/viewer/viewer.cpp6
-rw-r--r--messageviewer/src/viewer/viewer.h1
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp5
-rw-r--r--messageviewer/src/viewer/viewer_p.h3
4 files changed, 15 insertions, 0 deletions
diff --git a/messageviewer/src/viewer/viewer.cpp b/messageviewer/src/viewer/viewer.cpp
index e5b88af..2d03dde 100644
--- a/messageviewer/src/viewer/viewer.cpp
+++ b/messageviewer/src/viewer/viewer.cpp
@@ -639,5 +639,11 @@ void Viewer::runJavaScript(const QString &code)
d->mViewer->page()->runJavaScript(code);
}
+void Viewer::setPrintElementBackground(bool printElementBackground)
+{
+ Q_D(Viewer);
+ d->mViewer->setPrintElementBackground(printElementBackground);
+}
+
}
diff --git a/messageviewer/src/viewer/viewer.h b/messageviewer/src/viewer/viewer.h
index 0a7a048..a8d4750 100644
--- a/messageviewer/src/viewer/viewer.h
+++ b/messageviewer/src/viewer/viewer.h
@@ -323,6 +323,7 @@ public:
QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
void runJavaScript(const QString &code);
+ void setPrintElementBackground(bool printElementBackground);
Q_SIGNALS:
void moveMessageToTrash();
void executeMailAction(MessageViewer::Viewer::MailAction type);
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index 9a285db..4c56d68 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -3017,3 +3017,8 @@ QList<QAction *> ViewerPrivate::interceptorUrlActions(const WebEngineViewer::Web
{
return mViewer->interceptorUrlActions(result);
}
+
+void ViewerPrivate::setPrintElementBackground(bool printElementBackground)
+{
+ mViewer->setPrintElementBackground(printElementBackground);
+}
diff --git a/messageviewer/src/viewer/viewer_p.h b/messageviewer/src/viewer/viewer_p.h
index f3af63c..a1299ce 100644
--- a/messageviewer/src/viewer/viewer_p.h
+++ b/messageviewer/src/viewer/viewer_p.h
@@ -423,6 +423,9 @@ public:
QList<QAction *> viewerPluginActionList(MessageViewer::ViewerPluginInterface::SpecificFeatureTypes features);
QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
+
+ void setPrintElementBackground(bool printElementBackground);
+
private Q_SLOTS:
void slotActivatePlugin(MessageViewer::ViewerPluginInterface *interface);
void slotModifyItemDone(KJob *job);