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


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

    r116 r150  
    103103            return isEnabled;
    104104    }
    105 #endif
    106105    return false;
     106#elif !defined(HANDHELD)
     107    //! \todo TODO: Check for trsnsparency support in other OSes.
     108    return true;
     109#else
     110    return false;
     111#endif
    107112}
    108113
     
    125130        bb.dwFlags = DWM_BB_ENABLE;
    126131        bb.hRgnBlur = NULL;
     132#endif
    127133        widget->setAttribute(Qt::WA_TranslucentBackground, enable);
    128134        widget->setAttribute(Qt::WA_NoSystemBackground, enable);
     135#ifdef Q_WS_WIN
    129136        hr = pDwmEnableBlurBehindWindow(widget->winId(), &bb);
    130137        if (SUCCEEDED(hr)) {
Note: See TracChangeset for help on using the changeset viewer.