Changeset 8 for trunk/include/qregion.h
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/qregion.h
r7 r8 94 94 { return !(operator==(r)); } 95 95 96 #if defined(Q_WS_WIN) 97 HRGN handle() const { return data->rgn; }96 #if defined(Q_WS_WIN) || defined(Q_WS_PM) 97 HRGN handle() const { if (! data->rgn ) update(); return data->rgn; } 98 98 #elif defined(Q_WS_X11) 99 99 Region handle() const { if(!data->rgn) updateX11Region(); return data->rgn; } … … 115 115 #if defined(Q_WS_WIN) 116 116 QRegion winCombine( const QRegion &, int ) const; 117 #endif 118 #if defined(Q_WS_X11) 117 #elif defined(Q_WS_PM) 118 QRegion pmCombine( const QRegion &, int ) const; 119 void update() const; 120 #elif defined(Q_WS_X11) 119 121 void updateX11Region() const; 120 122 void *clipRectangles( int &num ) const; … … 123 125 void exec( const QByteArray &, int ver = 0 ); 124 126 struct QRegionData : public QShared { 125 #if defined(Q_WS_WIN) 127 #if defined(Q_WS_WIN) || defined(Q_WS_PM) 126 128 HRGN rgn; 127 129 #elif defined(Q_WS_X11) … … 145 147 #elif defined(Q_WS_WIN) 146 148 friend class QETWidget; 149 #elif defined(Q_WS_PM) 150 friend class QETWidget; 151 friend class QPainter; 152 friend void qt_set_paintevent_clipping( QPaintDevice*, const QRegion& ); 147 153 #endif 148 154
Note:
See TracChangeset
for help on using the changeset viewer.