summaryrefslogtreecommitdiffstats
path: root/kweather/dockwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:35:14 -0600
committerSlávek Banko <[email protected]>2012-06-04 02:12:11 +0200
commitb4dcf7866a6902adf76c3837f65395a37973a681 (patch)
tree2d8e09764958b35fb18acd0c535bd5f0d3358bce /kweather/dockwidget.cpp
parenta876c4b60cd4eac78cae83900064a2c7655d9d59 (diff)
downloadtdetoys-b4dcf7866a6902adf76c3837f65395a37973a681.tar.gz
tdetoys-b4dcf7866a6902adf76c3837f65395a37973a681.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit 3ee504ecba6caf3c2609a8648fe3659f2b541544)
Diffstat (limited to 'kweather/dockwidget.cpp')
-rw-r--r--kweather/dockwidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kweather/dockwidget.cpp b/kweather/dockwidget.cpp
index 04576b1..bfcc097 100644
--- a/kweather/dockwidget.cpp
+++ b/kweather/dockwidget.cpp
@@ -213,18 +213,18 @@ void dockwidget::resizeView( const TQSize &size )
if ( h <= 128 ) // left to right tqlayout
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::LeftToRight);
- m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
- m_lblWind->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
- m_lblPres->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblWind->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblPres->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
}
else // top to bottom
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::TopToBottom);
TQFontMetrics fm(m_font);
h = 128 - (3 * fm.height()); // 3 lines of text below the button
- m_lblTemp->tqsetAlignment(TQt::AlignCenter);
- m_lblWind->tqsetAlignment(TQt::AlignCenter);
- m_lblPres->tqsetAlignment(TQt::AlignCenter);
+ m_lblTemp->setAlignment(TQt::AlignCenter);
+ m_lblWind->setAlignment(TQt::AlignCenter);
+ m_lblPres->setAlignment(TQt::AlignCenter);
}
m_button->setFixedSize(h, h);
}
@@ -233,14 +233,14 @@ void dockwidget::resizeView( const TQSize &size )
if ( h <= 32 ) // left to right
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::LeftToRight);
- m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
}
else // top to bottom
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::TopToBottom);
TQFontMetrics fm(m_font);
h = TQMIN(128, h) - fm.height();
- m_lblTemp->tqsetAlignment(TQt::AlignCenter);
+ m_lblTemp->setAlignment(TQt::AlignCenter);
}
m_button->setFixedSize(h, h);
}
@@ -260,9 +260,9 @@ void dockwidget::resizeView( const TQSize &size )
if ( w <= 128 ) // top to bottom
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::TopToBottom);
- m_lblTemp->tqsetAlignment(TQt::AlignCenter);
- m_lblWind->tqsetAlignment(TQt::AlignCenter);
- m_lblPres->tqsetAlignment(TQt::AlignCenter);
+ m_lblTemp->setAlignment(TQt::AlignCenter);
+ m_lblWind->setAlignment(TQt::AlignCenter);
+ m_lblPres->setAlignment(TQt::AlignCenter);
TQFontMetrics fm(m_font);
h = h - (3 * fm.height()); // 3 lines of text below the button
@@ -271,9 +271,9 @@ void dockwidget::resizeView( const TQSize &size )
else // left to right tqlayout
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::LeftToRight);
- m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
- m_lblWind->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
- m_lblPres->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblWind->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblPres->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
}
m_button->setFixedSize(h, h);
}
@@ -282,14 +282,14 @@ void dockwidget::resizeView( const TQSize &size )
if ( w <= 128 ) // top to bottom
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::TopToBottom);
- m_lblTemp->tqsetAlignment(TQt::AlignCenter);
+ m_lblTemp->setAlignment(TQt::AlignCenter);
h = w;
}
else // left to right tqlayout
{
static_cast<TQBoxLayout*>(tqlayout())->setDirection(TQBoxLayout::LeftToRight);
- m_lblTemp->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter);
+ m_lblTemp->setAlignment(TQt::AlignAuto | TQt::AlignVCenter);
h = static_cast<int>(w * 0.33);
}