mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-18 11:40:44 +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 highres;
|
||||||
bool aa_setting=PROFILE.ExistsAndTrue("UseAntiAliasing");
|
bool aa_setting=PROFILE.ExistsAndTrue("UseAntiAliasing");
|
||||||
|
|
||||||
/*#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
PROFILE["HighResPrinting"]=true; // forced on
|
PROFILE["HighResPrinting"]=true; // forced on
|
||||||
bool force_antialiasing=true;
|
bool force_antialiasing=true;
|
||||||
#else */
|
#else
|
||||||
bool force_antialiasing=PROFILE.ExistsAndTrue("UseAntiAliasing");
|
bool force_antialiasing=PROFILE.ExistsAndTrue("UseAntiAliasing");
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
if (PROFILE.ExistsAndTrue("HighResPrinting")) {
|
if (PROFILE.ExistsAndTrue("HighResPrinting")) {
|
||||||
printer=new QPrinter(QPrinter::HighResolution);
|
printer=new QPrinter(QPrinter::HighResolution);
|
||||||
|
@ -198,13 +198,13 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
|
|||||||
ui->skipEmptyDays->setChecked(general["SkipEmptyDays"].value().toBool());
|
ui->skipEmptyDays->setChecked(general["SkipEmptyDays"].value().toBool());
|
||||||
ui->enableMultithreading->setChecked(general["EnableMultithreading"].value().toBool());
|
ui->enableMultithreading->setChecked(general["EnableMultithreading"].value().toBool());
|
||||||
ui->cacheSessionData->setChecked(general["MemoryHog"].value().toBool());
|
ui->cacheSessionData->setChecked(general["MemoryHog"].value().toBool());
|
||||||
//#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
// general["HighResPrinting"].setValue(true);
|
general["HighResPrinting"].setValue(true);
|
||||||
// ui->highResolutionPrinting->setChecked(true);
|
ui->highResolutionPrinting->setChecked(true);
|
||||||
// ui->highResolutionPrinting->setEnabled(false);
|
ui->highResolutionPrinting->setEnabled(false);
|
||||||
//#else
|
#else
|
||||||
ui->highResolutionPrinting->setChecked(general["HighResPrinting"].value().toBool());
|
ui->highResolutionPrinting->setChecked(general["HighResPrinting"].value().toBool());
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
ui->graphHeight->setValue(general["GraphHeight"].value().toInt());
|
ui->graphHeight->setValue(general["GraphHeight"].value().toInt());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user