summaryrefslogtreecommitdiffstats
path: root/src/itemlibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemlibrary.cpp')
-rw-r--r--src/itemlibrary.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/itemlibrary.cpp b/src/itemlibrary.cpp
index 9905372..6451e6b 100644
--- a/src/itemlibrary.cpp
+++ b/src/itemlibrary.cpp
@@ -370,10 +370,10 @@ TQImage ItemLibrary::itemImage( Item *item, const uint maxSize )
TQBitmap tqmask( bound.size() );
tqmask.fill( TQt::color0 );
- TQPainter tqmaskPainter(&tqmask);
- tqmaskPainter.translate( -bound.x(), -bound.y() );
- tqmaskPainter.setPen( TQt::color1 );
- tqmaskPainter.setBrush( TQt::color1 );
+ TQPainter maskPainter(&tqmask);
+ maskPainter.translate( -bound.x(), -bound.y() );
+ maskPainter.setPen( TQt::color1 );
+ maskPainter.setBrush( TQt::color1 );
TQPainter p(&pm);
@@ -391,7 +391,7 @@ TQImage ItemLibrary::itemImage( Item *item, const uint maxSize )
item->blockSignals(false);
}
item->drawShape(p);
- item->drawShape(tqmaskPainter);
+ item->drawShape(maskPainter);
if (sel)
{
item->blockSignals(true);
@@ -399,8 +399,8 @@ TQImage ItemLibrary::itemImage( Item *item, const uint maxSize )
item->blockSignals(false);
}
- tqmaskPainter.setPen( TQt::color1 );
- tqmaskPainter.setBrush( TQt::color1 );
+ maskPainter.setPen( TQt::color1 );
+ maskPainter.setBrush( TQt::color1 );
TQWMatrix transMatrix; // Matrix to apply to the image
@@ -420,13 +420,13 @@ TQImage ItemLibrary::itemImage( Item *item, const uint maxSize )
const bool showVB = ecnode->showVoltageBars();
ecnode->setShowVoltageBars(false);
ecnode->drawShape(p);
- ecnode->drawShape(tqmaskPainter);
+ ecnode->drawShape(maskPainter);
ecnode->setShowVoltageBars(showVB);
}
else
{
node->drawShape(p);
- node->drawShape(tqmaskPainter);
+ node->drawShape(maskPainter);
}
if (sel)
node->setSelected(sel);
@@ -438,13 +438,13 @@ TQImage ItemLibrary::itemImage( Item *item, const uint maxSize )
for ( TextMap::iterator it = text.begin(); it != textEnd; ++it )
{
it.data()->drawShape(p);
- it.data()->drawShape(tqmaskPainter);
+ it.data()->drawShape(maskPainter);
}
-// tqmaskPainter.setPen( TQt::color1 );
-// tqmaskPainter.setBrush( TQt::color1 );
+// maskPainter.setPen( TQt::color1 );
+// maskPainter.setBrush( TQt::color1 );
cnItem->drawWidgets(p);
-// cnItem->drawWidgets(tqmaskPainter);
+// cnItem->drawWidgets(maskPainter);
transMatrix = Component::transMatrix( component->angleDegrees(), component->flipped(), bound.width()/2, bound.height()/2, true );
}