Changeset 846 for trunk/src/gui/kernel/qguifunctions_wince.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qguifunctions_wince.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 77 77 #endif 78 78 79 #ifndef SHDB_HIDE 80 #define SHDB_HIDE 0x0002 81 #endif 82 79 83 #ifndef SHFS_SHOWTASKBAR 80 84 #define SHFS_SHOWTASKBAR 0x0001 … … 113 117 typedef BOOL (*AygFullScreen)(HWND, DWORD); 114 118 typedef BOOL (*AygSHSipInfo)(UINT, UINT, PVOID, UINT); 119 typedef BOOL (*AygSHDoneButton)(HWND, DWORD); 115 120 116 121 static AygInitDialog ptrAygInitDialog = 0; 117 122 static AygFullScreen ptrAygFullScreen = 0; 118 123 static AygSHSipInfo ptrAygSHSipInfo = 0; 124 static AygSHDoneButton ptrAygSHDoneButton = 0; 119 125 static bool aygResolved = false; 120 126 … … 129 135 ptrAygFullScreen = (AygFullScreen) ayglib.resolve("SHFullScreen"); 130 136 ptrAygSHSipInfo = (AygSHSipInfo) ayglib.resolve("SHSipInfo"); 131 } 132 } 133 134 struct DIBINFO : public BITMAPINFO 135 { 136 RGBQUAD arColors[255]; 137 138 operator LPBITMAPINFO() { return (LPBITMAPINFO) this; } 139 operator LPBITMAPINFOHEADER() { return &bmiHeader; } 140 RGBQUAD* ColorTable() { return bmiColors; } 141 }; 137 ptrAygSHDoneButton = (AygSHDoneButton) ayglib.resolve("SHDoneButton"); 138 } 139 } 142 140 143 141 int qt_wince_GetDIBits(HDC /*hdc*/ , HBITMAP hSourceBitmap, uint, uint, LPVOID lpvBits, LPBITMAPINFO, uint) … … 324 322 if (widget->windowFlags() & Qt::WindowOkButtonHint) 325 323 shidi.dwFlags |= SHIDIF_DONEBUTTON; 324 if (!(widget->windowFlags() & (Qt::WindowCancelButtonHint | Qt::WindowOkButtonHint))) 325 shidi.dwFlags |= SHIDIF_CANCELBUTTON; 326 326 resolveAygLibs(); 327 327 if (ptrAygInitDialog) … … 332 332 MoveWindow(hwnd, r.top, r.left, r.right - r.left, r.bottom - r.top, true); 333 333 SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong (hwnd, GWL_EXSTYLE) | WS_EX_NODRAG); 334 } 335 } 336 337 void qt_wince_unmaximize(QWidget *widget) 338 { 339 if (ptrAygSHDoneButton && qt_wince_is_mobile() 340 && !(widget->windowFlags() & (Qt::WindowCancelButtonHint | Qt::WindowOkButtonHint))) 341 { 342 // Hide the [X] button, we've added in qt_wince_maximize. 343 ptrAygSHDoneButton(widget->winId(), SHDB_HIDE); 334 344 } 335 345 }
Note:
See TracChangeset
for help on using the changeset viewer.