Changeset 150 in tspsg-svn for trunk/src/settingsdialog.cpp


Ignore:
Timestamp:
Dec 21, 2010, 2:28:51 PM (14 years ago)
Author:
laleppa
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
  • trunk/src/settingsdialog.cpp

    r149 r150  
    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.