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;
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)