aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-02-16 22:44:37 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-20 09:42:29 -0800
commit4f2a7dc972cc6c4bb9a22950b49a6877313a0bb1 (patch)
tree56bb3092efd11438bb4819018b2d9edf02ea853e /desktop-widgets/mainwindow.cpp
parent8bf804a764aecaa4a6c5636f62ba5ef61f8262d3 (diff)
downloadsubsurface-4f2a7dc972cc6c4bb9a22950b49a6877313a0bb1.tar.gz
Remove default stylesheet from planner output
Remove the default stylesheet ("Courier" 13pt) from the planner output QTextEdit. Remove the content of the html property of the QTextEdit because we overwrite it when doing setHtml. After printing copy the original dive notes string displayed_dive.notes back to the QTextEdit Advantages: Display is according to font settings. ctrl - mousewheel for zoom always works. Drawbacks: Printing font is same as display font but can be adjusted by zooming before. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 194147639..50b3d24ac 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -892,7 +892,7 @@ void MainWindow::printPlan()
plannerDetails()->divePlanOutput()->setHtml(withDisclaimer);
plannerDetails()->divePlanOutput()->print(&printer);
- plannerDetails()->divePlanOutput()->setHtml(diveplan);
+ plannerDetails()->divePlanOutput()->setHtml(displayed_dive.notes);
#endif
}