Changeset 89e5214692 in tspsg for src/qtwin.cpp
- Timestamp:
- Sep 12, 2012, 6:50:04 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 197f54a2b9
- Parents:
- f48433245d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/qtwin.cpp
rf48433245d r89e5214692 19 19 #endif // Q_WS_X11 20 20 21 #ifdef Q_ WS_WIN21 #ifdef Q_OS_WIN32 22 22 23 23 #include <qt_windows.h> … … 99 99 bool QtWin::isCompositionEnabled() 100 100 { 101 #ifdef Q_ WS_WIN101 #ifdef Q_OS_WIN32 102 102 if (resolveLibs()) { 103 103 HRESULT hr = S_OK; … … 124 124 { 125 125 Q_ASSERT(widget); 126 Q_UNUSED(widget);127 Q_UNUSED(enable);128 126 bool result = false; 129 #ifdef Q_ WS_WIN127 #ifdef Q_OS_WIN32 130 128 if (resolveLibs()) { 131 129 DWM_BLURBEHIND bb = {0}; … … 137 135 widget->setAttribute(Qt::WA_TranslucentBackground, enable); 138 136 widget->setAttribute(Qt::WA_NoSystemBackground, enable); 139 #ifdef Q_ WS_WIN140 hr = pDwmEnableBlurBehindWindow( widget->winId(), &bb);137 #ifdef Q_OS_WIN32 138 hr = pDwmEnableBlurBehindWindow(HWND(widget->winId()), &bb); 141 139 if (SUCCEEDED(hr)) { 142 140 result = true; … … 171 169 172 170 bool result = false; 173 #ifdef Q_ WS_WIN171 #ifdef Q_OS_WIN32 174 172 if (resolveLibs()) { 175 173 QLibrary dwmLib(QString::fromAscii("dwmapi")); 176 174 HRESULT hr = S_OK; 177 175 MARGINS m = {left, top, right, bottom}; 178 hr = pDwmExtendFrameIntoClientArea( widget->winId(), &m);176 hr = pDwmExtendFrameIntoClientArea(HWND(widget->winId()), &m); 179 177 if (SUCCEEDED(hr)) { 180 178 result = true; … … 196 194 QColor resultColor = QApplication::palette().window().color(); 197 195 198 #ifdef Q_ WS_WIN196 #ifdef Q_OS_WIN32 199 197 if (resolveLibs()) { 200 198 DWORD color = 0; … … 210 208 } 211 209 212 #ifdef Q_ WS_WIN210 #ifdef Q_OS_WIN32 213 211 WindowNotifier *QtWin::windowNotifier() 214 212 {
Note: See TracChangeset
for help on using the changeset viewer.