Changeset 946f442ab0 in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Jan 7, 2010, 3:48:24 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
354e06314f
Parents:
f1fb54b9f7
Message:

+ Added the ability to select between using Native and Qt's File Dialog.

  • Updated translations to reflect changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    rf1fb54b9f7 r946f442ab0  
    6868        vbox2->addWidget(cbScrollToEnd);
    6969        vbox2->addWidget(cbAutosize);
     70        vbox2->addWidget(cbUseNativeDialogs);
    7071
    7172        // Output settings group
     
    108109        imgIcon->setLineWidth(0);
    109110        imgIcon->setPixmap(QPixmap(":/images/icons/preferences_system.png"));
    110         imgIcon->setStyleSheet("background-color: #0080C0;");
    111         imgIcon->setAlignment(Qt::AlignCenter);
     111        imgIcon->setStyleSheet("background-color: #0080C0; padding-top: 11px;");
     112        imgIcon->setAlignment(Qt::AlignTop | Qt::AlignHCenter);
    112113        imgIcon->setMinimumWidth(150);
    113114
     
    150151        // Top right part (with white bg)
    151152        vbox2 = new QVBoxLayout(bgWhite);
    152         vbox2->addStretch();
     153//      vbox2->addStretch();
    153154        vbox2->addLayout(hbox2);
    154155        vbox2->addWidget(cbFractionalRandom);
     
    157158        vbox2->addWidget(cbScrollToEnd);
    158159        vbox2->addWidget(cbAutosize);
     160        vbox2->addWidget(cbUseNativeDialogs);
    159161        vbox2->addWidget(cbSaveState);
    160162        vbox2->addStretch();
     
    193195        spinRandMax->setValue(settings->value("MaxCost",DEF_RAND_MAX).toInt());
    194196        cbFractionalRandom->setChecked(settings->value("FractionalRandom", DEF_FRACTIONAL_RANDOM).toBool());
    195         cbAutosize->setChecked(settings->value("Autosize",true).toBool());
     197        cbAutosize->setChecked(settings->value("Autosize", DEF_AUTOSIZE).toBool());
     198        cbUseNativeDialogs->setChecked(settings->value("UseNativeDialogs", DEF_USE_NATIVE_DIALOGS).toBool());
    196199#ifndef Q_OS_WINCE
    197         cbSaveState->setChecked(settings->value("SavePos",false).toBool());
     200        cbSaveState->setChecked(settings->value("SavePos", DEF_SAVEPOS).toBool());
    198201#endif // Q_OS_WINCE
    199202
     
    203206        cbCitiesLimit->setChecked(settings->value("UseShowMatrixLimit", DEF_USE_SHOW_MATRIX_LIMIT && cbShowMatrix->isChecked()).toBool());
    204207        spinCitiesLimit->setEnabled(cbShowMatrix->isChecked());
    205         spinCitiesLimit->setValue(settings->value("ShowMatrixCitiesLimit", DEF_SHOW_MATRIX_CITY_LIMIT).toInt());
     208        spinCitiesLimit->setValue(settings->value("ShowMatrixLimit", DEF_SHOW_MATRIX_LIMIT).toInt());
    206209        spinCitiesLimit->setMaximum(MAX_NUM_CITIES);
    207210        cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool());
     
    239242        settings->setValue("SavePos", cbSaveState->isChecked());
    240243#endif // Q_OS_WINCE
     244        settings->setValue("UseNativeDialogs", cbUseNativeDialogs->isChecked());
    241245        settings->setValue("Autosize", cbAutosize->isChecked());
    242246        settings->setValue("MinCost", spinRandMin->value());
     
    248252        settings->setValue("UseShowMatrixLimit", cbShowMatrix->isChecked() && cbCitiesLimit->isChecked());
    249253        if (cbCitiesLimit->isChecked())
    250                 settings->setValue("ShowMatrixCitiesLimit", spinCitiesLimit->value());
     254                settings->setValue("ShowMatrixLimit", spinCitiesLimit->value());
    251255        settings->setValue("ScrollToEnd", cbScrollToEnd->isChecked());
    252256        if (newFont)
Note: See TracChangeset for help on using the changeset viewer.