From 89856e749bf14e63fed55a8f3436ea9a6f19667a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:23:49 -0600 Subject: Rename obsolete tq methods to standard names --- ksim/library/chart.cpp | 2 +- ksim/library/label.cpp | 4 ++-- ksim/library/themeloader.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ksim/library') diff --git a/ksim/library/chart.cpp b/ksim/library/chart.cpp index b68c073..b9b5e31 100644 --- a/ksim/library/chart.cpp +++ b/ksim/library/chart.cpp @@ -264,7 +264,7 @@ void KSim::Chart::configureObject(bool repaintWidget) } // Update our geometry if we need to let any - // tqlayout know about our sizeHint() change + // layout know about our sizeHint() change if (oldSize != sizeHint()) { // Using resize() here seems to be needed resize(sizeHint()); diff --git a/ksim/library/label.cpp b/ksim/library/label.cpp index 4aa12b0..91c23a6 100644 --- a/ksim/library/label.cpp +++ b/ksim/library/label.cpp @@ -232,7 +232,7 @@ void KSim::Label::drawText(TQPainter *painter, const TQRect &rect, if (!pixmap().isNull()) location.setX(pixmap().width() + 5); - tqstyle().drawItem(painter, location, AlignCenter, colorGroup(), true, + style().drawItem(painter, location, AlignCenter, colorGroup(), true, 0, text, -1, &color); } @@ -242,7 +242,7 @@ void KSim::Label::drawPixmap(TQPainter *painter, const TQRect &rect, TQRect location(rect); location.setWidth(pixmap.width()); - tqstyle().drawItem(painter, location, AlignCenter, colorGroup(), true, + style().drawItem(painter, location, AlignCenter, colorGroup(), true, pixmap.isNull() ? 0 : &pixmap, TQString()); } diff --git a/ksim/library/themeloader.cpp b/ksim/library/themeloader.cpp index a7e21da..f6d6474 100644 --- a/ksim/library/themeloader.cpp +++ b/ksim/library/themeloader.cpp @@ -217,7 +217,7 @@ TQRect KSim::Theme::frameRightBorder(const TQRect &defValue) const TQColor KSim::Theme::chartInColour(const TQColor &defValue) const { if (d->recolour) - return TQApplication::tqpalette().active().background(); + return TQApplication::palette().active().background(); return internalColourEntry("chart_in_color", defValue); } @@ -230,7 +230,7 @@ TQColor KSim::Theme::chartInColourGrid(const TQColor &defValue) const TQColor KSim::Theme::chartOutColour(const TQColor &defValue) const { if (d->recolour) - return TQApplication::tqpalette().active().background(); + return TQApplication::palette().active().background(); return internalColourEntry("chart_out_color", defValue); } @@ -948,7 +948,7 @@ void KSim::ThemeLoader::reColourImage(TQImage &image) if (!d->recolour || image.isNull()) return; - TQColor color = TQApplication::tqpalette().active().background(); + TQColor color = TQApplication::palette().active().background(); TQImage output(image.width(), image.height(), 32); output.setAlphaBuffer(image.hasAlphaBuffer()); -- cgit v1.2.1