Force HighRes on Mac again

This commit is contained in:
Mark Watkins 2011-12-13 19:16:16 +10:00
parent 66f2528b9e
commit 22142232e0
2 changed files with 9 additions and 9 deletions

View File

@ -711,12 +711,12 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
bool highres;
bool aa_setting=PROFILE.ExistsAndTrue("UseAntiAliasing");
/*#ifdef Q_WS_MAC
#ifdef Q_WS_MAC
PROFILE["HighResPrinting"]=true; // forced on
bool force_antialiasing=true;
#else */
#else
bool force_antialiasing=PROFILE.ExistsAndTrue("UseAntiAliasing");
//#endif
#endif
if (PROFILE.ExistsAndTrue("HighResPrinting")) {
printer=new QPrinter(QPrinter::HighResolution);

View File

@ -198,13 +198,13 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
ui->skipEmptyDays->setChecked(general["SkipEmptyDays"].value().toBool());
ui->enableMultithreading->setChecked(general["EnableMultithreading"].value().toBool());
ui->cacheSessionData->setChecked(general["MemoryHog"].value().toBool());
//#ifdef Q_WS_MAC
// general["HighResPrinting"].setValue(true);
// ui->highResolutionPrinting->setChecked(true);
// ui->highResolutionPrinting->setEnabled(false);
//#else
#ifdef Q_WS_MAC
general["HighResPrinting"].setValue(true);
ui->highResolutionPrinting->setChecked(true);
ui->highResolutionPrinting->setEnabled(false);
#else
ui->highResolutionPrinting->setChecked(general["HighResPrinting"].value().toBool());
//#endif
#endif
ui->graphHeight->setValue(general["GraphHeight"].value().toInt());