Changeset b8a2a118c4 in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Dec 21, 2010, 2:28:51 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
bfe1e5e2ea
Parents:
9eb63a1598
git-author:
Oleksii Serdiuk <contacts@…> (12/21/10 14:28:51)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
Message:
  • Translucency effect is now available on all desktop platforms. No check for its support by window system is made at this moment. Blur is only available in Windows Vista or higher.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    r9eb63a1598 rb8a2a118c4  
    142142QVBoxLayout *vbox; // Layout helper
    143143
    144 #ifdef Q_WS_WIN32
     144#ifndef HANDHELD
    145145    if (QtWin::isCompositionEnabled()) {
    146146        cbUseTranslucency = new QCheckBox(bgWhite);
     
    152152        cbUseTranslucency->setCursor(QCursor(Qt::PointingHandCursor));
    153153    }
    154 #endif // Q_WS_WIN32
     154#endif // HANDHELD
    155155
    156156    cbSaveState = new QCheckBox(bgWhite);
     
    198198    box = static_cast<QBoxLayout *>(tabGeneral->layout());
    199199    box->insertWidget(box->indexOf(cbUseNativeDialogs) + 1, cbSaveState);
    200 #ifdef Q_WS_WIN32
     200#ifndef HANDHELD
    201201    if (QtWin::isCompositionEnabled())
    202202        box->insertWidget(box->indexOf(cbUseNativeDialogs) + 1, cbUseTranslucency);
    203 #endif // Q_WS_WIN32
     203#endif // HANDHELD
    204204
    205205    // Inserting label for hints to the bottom part (with grey bg)
     
    234234    cbSaveLastUsed->setChecked(settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool());
    235235    cbUseNativeDialogs->setChecked(settings->value("UseNativeDialogs", DEF_USE_NATIVE_DIALOGS).toBool());
    236 #ifdef Q_WS_WIN32
     236#ifndef HANDHELD
    237237    if (QtWin::isCompositionEnabled())
    238238        cbUseTranslucency->setChecked(settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool());
    239 #endif // Q_WS_WIN32
     239#endif // HANDHELD
    240240#ifndef HANDHELD
    241241    cbSaveState->setChecked(settings->value("SavePos", DEF_SAVEPOS).toBool());
     
    353353    settings->setValue("SaveLastUsed", cbSaveLastUsed->isChecked());
    354354    settings->setValue("UseNativeDialogs", cbUseNativeDialogs->isChecked());
    355 #ifdef Q_WS_WIN32
     355#ifndef HANDHELD
    356356    if (QtWin::isCompositionEnabled()) {
    357357bool old = settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool();
     
    362362        settings->setValue("UseTranslucency", cbUseTranslucency->isChecked());
    363363    }
    364 #endif // Q_WS_WIN32
    365 #ifndef HANDHELD
    366364    settings->setValue("SavePos", cbSaveState->isChecked());
    367365#endif // HANDHELD
Note: See TracChangeset for help on using the changeset viewer.