Changeset b8a2a118c4 in tspsg for src/mainwindow.cpp


Ignore:
Timestamp:
Dec 21, 2010, 2:28:51 PM (13 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/mainwindow.cpp

    r9eb63a1598 rb8a2a118c4  
    2525
    2626#ifdef Q_WS_WIN32
    27     #include "shobjidl.h"
     27#   include "shobjidl.h"
    2828#endif
    2929
     
    396396        if (untitled)
    397397            setFileName();
    398 #ifdef Q_WS_WIN32
     398#ifndef HANDHELD
    399399        if (QtWin::isCompositionEnabled() && settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool())  {
    400400            toggleStyle(labelVariant, true);
     
    610610    connect(bb, SIGNAL(accepted()), dlg, SLOT(accept()));
    611611
    612 #ifdef Q_WS_WIN32
    613     // Adding some eyecandy in Vista and 7 :-)
     612#ifndef HANDHELD
     613    // Adding some eyecandy
    614614    if (QtWin::isCompositionEnabled())  {
    615615        QtWin::enableBlurBehindWindow(dlg, true);
    616616    }
    617 #endif // Q_WS_WIN32
     617#endif // HANDHELD
    618618
    619619    dlg->resize(450, 350);
     
    10301030void MainWindow::solverRoutePartFound(int n)
    10311031{
    1032 #ifdef Q_WS_WIN32
    10331032    tl->SetProgressValue(winId(), n, spinCities->value() * 2);
    1034 #else
    1035     Q_UNUSED(n);
    1036 #endif // Q_WS_WIN32
    10371033}
    10381034#endif // Q_WS_WIN32
     
    16611657    retranslateUi(false);
    16621658
    1663 #ifdef Q_WS_WIN32
    1664     // Adding some eyecandy in Vista and 7 :-)
     1659#ifndef HANDHELD
     1660    // Adding some eyecandy
    16651661    if (QtWin::isCompositionEnabled() && settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool())  {
    16661662        toggleTranclucency(true);
    16671663    }
    1668 #endif // Q_WS_WIN32
     1664#endif // HANDHELD
    16691665}
    16701666
     
    16821678void MainWindow::toggleTranclucency(bool enable)
    16831679{
    1684 #ifdef Q_WS_WIN32
     1680#ifndef HANDHELD
    16851681    toggleStyle(labelVariant, enable);
    16861682    toggleStyle(labelCities, enable);
     
    16901686#else
    16911687    Q_UNUSED(enable);
    1692 #endif // Q_WS_WIN32
     1688#endif // HANDHELD
    16931689}
    16941690
Note: See TracChangeset for help on using the changeset viewer.