From 97d1732e257f8700488d7ca1660ae7eba8fc6065 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:47:36 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- libtdegames/kgameprogress.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libtdegames/kgameprogress.cpp') diff --git a/libtdegames/kgameprogress.cpp b/libtdegames/kgameprogress.cpp index 98876aa3..de32cd14 100644 --- a/libtdegames/kgameprogress.cpp +++ b/libtdegames/kgameprogress.cpp @@ -79,11 +79,11 @@ void KGameProgress::initialize() void KGameProgress::paletteChange() { TQPalette p = kapp->palette(); - const TQColorGroup &tqcolorGroup = p.active(); + const TQColorGroup &colorGroup = p.active(); if (!use_supplied_bar_color) - bar_color = tqcolorGroup.highlight(); - bar_text_color = tqcolorGroup.highlightedText(); - text_color = tqcolorGroup.text(); + bar_color = colorGroup.highlight(); + bar_text_color = colorGroup.highlightedText(); + text_color = colorGroup.text(); setPalette(p); adjustStyle(); @@ -151,7 +151,7 @@ bool KGameProgress::textEnabled() const return text_enabled; } -TQSize KGameProgress::tqsizeHint() const +TQSize KGameProgress::sizeHint() const { TQSize s( size() ); @@ -164,9 +164,9 @@ TQSize KGameProgress::tqsizeHint() const return s; } -TQSize KGameProgress::tqminimumSizeHint() const +TQSize KGameProgress::minimumSizeHint() const { - return tqsizeHint(); + return sizeHint(); } TQSizePolicy KGameProgress::sizePolicy() const @@ -196,13 +196,13 @@ int KGameProgress::recalcValue(int range) void KGameProgress::valueChange() { - tqrepaint(contentsRect(), FALSE); + repaint(contentsRect(), FALSE); emit percentageChanged(recalcValue(100)); } void KGameProgress::rangeChange() { - tqrepaint(contentsRect(), FALSE); + repaint(contentsRect(), FALSE); emit percentageChanged(recalcValue(100)); } @@ -213,7 +213,7 @@ void KGameProgress::styleChange(TQStyle&) void KGameProgress::adjustStyle() { - switch (tqstyle().tqstyleHint(TQStyle::SH_GUIStyle)) { + switch (tqstyle().styleHint(TQStyle::SH_GUIStyle)) { case WindowsStyle: setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken); break; @@ -242,9 +242,9 @@ void KGameProgress::drawText(TQPainter *p) // the current value and the maximum value respectively. TQString s(format_); - s.replace(TQRegExp(TQString::tqfromLatin1("%p")), TQString::number(recalcValue(100))); - s.replace(TQRegExp(TQString::tqfromLatin1("%v")), TQString::number(value())); - s.replace(TQRegExp(TQString::tqfromLatin1("%m")), TQString::number(maxValue())); + s.replace(TQRegExp(TQString::fromLatin1("%p")), TQString::number(recalcValue(100))); + s.replace(TQRegExp(TQString::fromLatin1("%v")), TQString::number(value())); + s.replace(TQRegExp(TQString::fromLatin1("%m")), TQString::number(maxValue())); p->setPen(text_color); TQFont font = p->font(); -- cgit v1.2.1