temp fix for printing
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 14 Dec 2008 14:13:00 +0000 (14:13 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 14 Dec 2008 14:13:00 +0000 (14:13 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@217 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/orderwin.cpp

index 43432f8..c16b336 100644 (file)
@@ -331,13 +331,12 @@ void MOrderWindow::printVouchers(QList<MVoucher> vouchersin)
 
 void MOrderWindow::restorePrinter(QPrinter&prn,QString key)
 {
+#if !defined(Q_OS_WIN32) && !defined(Q_OS_WINCE)
        QSettings set;
        set.beginGroup(req->settingsGroup()+"/"+key);
        if(!set.contains("name"))return;
        prn.setPrinterName(set.value("name").toString());
-#if !defined(Q_OS_WIN32) && !defined(Q_OS_WINCE)
        prn.setPrinterSelectionOption(set.value("soption","").toString());
-#endif
        prn.setPaperSize(QPrinter::PageSize(set.value("paper",QPrinter::Custom).toInt()));
        prn.setPaperSize(set.value("papersize").toSizeF(),QPrinter::Point);
        qreal ml,mr,mt,mb;
@@ -349,6 +348,7 @@ void MOrderWindow::restorePrinter(QPrinter&prn,QString key)
        prn.setDuplex(QPrinter::DuplexMode(set.value("duplex",QPrinter::DuplexAuto).toInt()));
        prn.setOrientation((set.value("orientation","portrait").toString()=="portrait")?QPrinter::Portrait:QPrinter::Landscape);
        prn.setResolution(set.value("resolution").toInt());
+#endif
 }
 
 void MOrderWindow::storePrinter(QPrinter&prn,QString key)