#include <QCheckBox>
#include <QComboBox>
#include <QCoreApplication>
+#include <QDebug>
#include <QFileDialog>
#include <QFileInfo>
#include <QGroupBox>
printer->addItem(QCoreApplication::translate("office","(Default Printer)"));
QList<QPrinterInfo>aprn=QPrinterInfo::availablePrinters();
int cprn=0;
- QString cp=QSettings().value("officePrinter","").toString();
for(int i=0;i<aprn.size();i++){
QString s=aprn[i].printerName();
printer->addItem(s);
- if(cp==prn)cprn=i+1;
+ if(s==prn)cprn=i+1;
}
printer->setCurrentIndex(cprn);
+// qDebug()<<"printer selection"<<prn<<cprn;
vl->addSpacing(10);
vl->addStretch(1);
QHBoxLayout*hl;