summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqdrawutil.cpp')
-rw-r--r--tqtinterface/qt4/src/kernel/tqdrawutil.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqdrawutil.cpp b/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
index 07e2bb4..b220e58 100644
--- a/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
+++ b/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
@@ -621,27 +621,27 @@ void qDrawItem( TQPainter *p, TQt::GUIStyle gs,
x += w - pm.width();
if ( !enabled ) {
- if ( pm.tqmask() ) { // pixmap with a tqmask
- if ( !pm.selfMask() ) { // tqmask is not pixmap itself
- TQPixmap pmm( *pm.tqmask() );
+ if ( pm.mask() ) { // pixmap with a mask
+ if ( !pm.selfMask() ) { // mask is not pixmap itself
+ TQPixmap pmm( *pm.mask() );
pmm.setMask( *((TQBitmap *)&pmm) );
pm = pmm;
}
- } else if ( pm.depth() == 1 ) { // monochrome pixmap, no tqmask
+ } else if ( pm.depth() == 1 ) { // monochrome pixmap, no mask
pm.setMask( *((TQBitmap *)&pm) );
#ifndef TQT_NO_IMAGE_HEURISTIC_MASK
- } else { // color pixmap, no tqmask
+ } else { // color pixmap, no mask
TQString k;
k.sprintf( "$qt-drawitem-%x", pm.serialNumber() );
- TQPixmap *tqmask = TQPixmapCache::find(k);
+ TQPixmap *mask = TQPixmapCache::find(k);
bool del=FALSE;
- if ( !tqmask ) {
- tqmask = new TQPixmap( pm.createHeuristicMask() );
- tqmask->setMask( *((TQBitmap*)tqmask) );
- del = !TQPixmapCache::insert( k, tqmask );
+ if ( !mask ) {
+ mask = new TQPixmap( pm.createHeuristicMask() );
+ mask->setMask( *((TQBitmap*)mask) );
+ del = !TQPixmapCache::insert( k, mask );
}
- pm = *tqmask;
- if (del) delete tqmask;
+ pm = *mask;
+ if (del) delete mask;
#endif
}
if ( gs == TQt::WindowsStyle ) {