Changeset 89e5214692 in tspsg for src/qtwin.cpp


Ignore:
Timestamp:
Sep 12, 2012, 6:50:04 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
197f54a2b9
Parents:
f48433245d
Message:

Replaced all Q_WS_xxx with Q_OS_xxx ifdefs where possible.

This is needed for compatibility with Qt 5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/qtwin.cpp

    rf48433245d r89e5214692  
    1919#endif // Q_WS_X11
    2020
    21 #ifdef Q_WS_WIN
     21#ifdef Q_OS_WIN32
    2222
    2323#include <qt_windows.h>
     
    9999bool QtWin::isCompositionEnabled()
    100100{
    101 #ifdef Q_WS_WIN
     101#ifdef Q_OS_WIN32
    102102    if (resolveLibs()) {
    103103        HRESULT hr = S_OK;
     
    124124{
    125125    Q_ASSERT(widget);
    126     Q_UNUSED(widget);
    127     Q_UNUSED(enable);
    128126    bool result = false;
    129 #ifdef Q_WS_WIN
     127#ifdef Q_OS_WIN32
    130128    if (resolveLibs()) {
    131129        DWM_BLURBEHIND bb = {0};
     
    137135        widget->setAttribute(Qt::WA_TranslucentBackground, enable);
    138136        widget->setAttribute(Qt::WA_NoSystemBackground, enable);
    139 #ifdef Q_WS_WIN
    140         hr = pDwmEnableBlurBehindWindow(widget->winId(), &bb);
     137#ifdef Q_OS_WIN32
     138        hr = pDwmEnableBlurBehindWindow(HWND(widget->winId()), &bb);
    141139        if (SUCCEEDED(hr)) {
    142140            result = true;
     
    171169
    172170    bool result = false;
    173 #ifdef Q_WS_WIN
     171#ifdef Q_OS_WIN32
    174172    if (resolveLibs()) {
    175173        QLibrary dwmLib(QString::fromAscii("dwmapi"));
    176174        HRESULT hr = S_OK;
    177175        MARGINS m = {left, top, right, bottom};
    178         hr = pDwmExtendFrameIntoClientArea(widget->winId(), &m);
     176        hr = pDwmExtendFrameIntoClientArea(HWND(widget->winId()), &m);
    179177        if (SUCCEEDED(hr)) {
    180178            result = true;
     
    196194    QColor resultColor = QApplication::palette().window().color();
    197195
    198 #ifdef Q_WS_WIN
     196#ifdef Q_OS_WIN32
    199197    if (resolveLibs()) {
    200198        DWORD color = 0;
     
    210208}
    211209
    212 #ifdef Q_WS_WIN
     210#ifdef Q_OS_WIN32
    213211WindowNotifier *QtWin::windowNotifier()
    214212{
Note: See TracChangeset for help on using the changeset viewer.