[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Sat Oct 6 09:54:26 UTC 2012


SVN commit 1319397 by kuemmel:

printing to pdf suppresses the print dialog on Windows

 M  +3 -0      mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1319396:1319397
@@ -704,7 +704,10 @@
 
   setPrinterDefaults(&printer);
 
+#ifndef Q_OS_WIN
+  // QPrintDialog: Cannot be used on non-native printers
   printer.setOutputFileName(_dialogDefaults->value("print/path", "./print.pdf").toString());
+#endif
   QPointer<QPrintDialog> pd = new QPrintDialog(&printer, this);
 #if QT_VERSION >= 0x040500
   pd->setOption(QPrintDialog::PrintToFile);


More information about the Kst mailing list