From d296f1d337dabfeae5191955fdadb874965dbbe9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 10 Aug 2011 12:13:27 -0500 Subject: rename the following methods: tqparent parent tqmask mask --- tqtinterface/qt4/src/kernel/tqdrawutil.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tqtinterface/qt4/src/kernel/tqdrawutil.cpp') 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 ) { -- cgit v1.2.1