Changeset 309 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Nov 10, 2009, 3:22:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r289 r309 1022 1022 if (desktop && !q->testAttribute(Qt::WA_DontShowOnScreen)) { // desktop widget 1023 1023 popup = false; // force this flags off 1024 // @todo use WinGetMaxPosition to take into account such things as XCenter?1024 // @todo use WinGetMaxPosition? 1025 1025 data.crect.setRect(0, 0, sw, sh); 1026 1026 } … … 1571 1571 void QWidgetPrivate::setWindowIcon_sys(bool forceReset) 1572 1572 { 1573 // @todo implement, depends on #38 1573 Q_Q(QWidget); 1574 if (!q->testAttribute(Qt::WA_WState_Created) || !q->isWindow()) 1575 return; 1576 QTLWExtra *x = this->topData(); 1577 if (x->iconPointer != NULLHANDLE && !forceReset) 1578 // already been set 1579 return; 1580 1581 if (x->iconPointer != NULLHANDLE) 1582 WinDestroyPointer(x->iconPointer); 1583 1584 x->iconPointer = QPixmap::toPmHPOINTER(q->windowIcon()); 1585 WinSendMsg(frameWinId(), WM_SETICON, (MPARAM)x->iconPointer, NULL); 1574 1586 } 1575 1587 … … 2314 2326 extra->topextra->fId = NULLHANDLE; 2315 2327 extra->topextra->swEntry = NULLHANDLE; 2328 2316 2329 } 2317 2330 2318 2331 void QWidgetPrivate::deleteTLSysExtra() 2319 2332 { 2333 2334 2320 2335 if (extra->topextra->swEntry != NULLHANDLE) 2321 2336 WinRemoveSwitchEntry(extra->topextra->swEntry);
Note:
See TracChangeset
for help on using the changeset viewer.