From 22142232e02f35957ecaae07cda5aeec8dd37db4 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 13 Dec 2011 19:16:16 +1000 Subject: [PATCH] Force HighRes on Mac again --- mainwindow.cpp | 6 +++--- preferencesdialog.cpp | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 817ebb5c..b86723a8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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); diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index a895d063..5451c13c 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -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());