aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/printdialog.cpp')
-rw-r--r--desktop-widgets/printdialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop-widgets/printdialog.cpp b/desktop-widgets/printdialog.cpp
index 8187dda6e..a4c181c68 100644
--- a/desktop-widgets/printdialog.cpp
+++ b/desktop-widgets/printdialog.cpp
@@ -19,8 +19,9 @@
template_options::color_palette_struct ssrf_colors, almond_colors, blueshades_colors, custom_colors;
-PrintDialog::PrintDialog(QWidget *parent) :
+PrintDialog::PrintDialog(bool inPlanner, QWidget *parent) :
QDialog(parent, QFlag(0)),
+ inPlanner(inPlanner),
printer(NULL),
qprinter(NULL)
{
@@ -174,10 +175,10 @@ void PrintDialog::createPrinterObj()
{
// create a new printer object
if (!printer) {
- qprinter = new QPrinter();
+ qprinter = new QPrinter;
qprinter->setResolution(printOptions.resolution);
qprinter->setOrientation((QPrinter::Orientation)printOptions.landscape);
- printer = new Printer(qprinter, printOptions, templateOptions, Printer::PRINT);
+ printer = new Printer(qprinter, printOptions, templateOptions, Printer::PRINT, inPlanner);
}
}