Changeset 115 for trunk/src/gui/kernel/qwidget.cpp
- Timestamp:
- Aug 17, 2009, 7:06:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget.cpp
r112 r115 10359 10359 qErrnoWarning("QWidget::releaseDC(): failed to release HDC"); 10360 10360 } 10361 #elif defined (Q_WS_PM) 10362 /*! 10363 Returns the window system handle of the widget, for low-level 10364 access. Using this function is not portable. 10365 10366 An HPS acquired with getPS() has to be released with releasePS(). 10367 10368 \warning Using this function is not portable. 10369 */ 10370 HPS QWidget::getPS() const 10371 { 10372 Q_D(const QWidget); 10373 if (d->hd != NULLHANDLE) 10374 return (HPS) d->hd; 10375 return WinGetPS(winId()); 10376 } 10377 10378 /*! 10379 Releases the HPS \a hdc acquired by a previous call to getPS(). 10380 10381 \warning Using this function is not portable. 10382 */ 10383 void QWidget::releasePS(HPS hps) const 10384 { 10385 Q_D(const QWidget); 10386 // If there is a widget's own ps, the release operation is ignored because 10387 // it will be released elsewhere. Otherwise, we assume that the given hps 10388 // was acquired by WinGetPS in the getPS() call and release it. 10389 if (d->hd == NULLHANDLE) 10390 WinReleasePS(hps); 10391 } 10361 10392 #else 10362 10393 /*!
Note:
See TracChangeset
for help on using the changeset viewer.