mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 04:30:43 +00:00
Force HighRes on Mac again
This commit is contained in:
parent
66f2528b9e
commit
22142232e0
@ -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);
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user