summaryrefslogtreecommitdiffstats
path: root/libtdegames/kgameprogress.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:31:10 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:31:10 -0600
commit0e2b76239f354a9eead0b4e37d86d390ec57ffa9 (patch)
treecd20202507f54f61a4e58ae64fcd7cdb894abe19 /libtdegames/kgameprogress.cpp
parent84ace1135cac57993b72fee7105b92def1638d32 (diff)
downloadtdegames-0e2b76239f354a9eead0b4e37d86d390ec57ffa9.tar.gz
tdegames-0e2b76239f354a9eead0b4e37d86d390ec57ffa9.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'libtdegames/kgameprogress.cpp')
-rw-r--r--libtdegames/kgameprogress.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libtdegames/kgameprogress.cpp b/libtdegames/kgameprogress.cpp
index 98876aa3..0bb56014 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
@@ -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();