summaryrefslogtreecommitdiffstats
path: root/kicker/taskbar
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:19:21 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 03:26:34 +0200
commit0251b10c2e9a79e857e5729453d375d09fa8336e (patch)
tree11223ad7a12c1bdbc81b9bb698618b0386a1ce5e /kicker/taskbar
parenta5b44fbe44e58478ad74d819c5f4c36926d31872 (diff)
downloadtdebase-0251b10c2e9a79e857e5729453d375d09fa8336e.tar.gz
tdebase-0251b10c2e9a79e857e5729453d375d09fa8336e.zip
Rename obsolete tq methods to standard names
(cherry picked from commit b492b550f35c84160958775c14ea7037c5b12181)
Diffstat (limited to 'kicker/taskbar')
-rw-r--r--kicker/taskbar/taskcontainer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kicker/taskbar/taskcontainer.cpp b/kicker/taskbar/taskcontainer.cpp
index 4f4d15e7c..48dd57d35 100644
--- a/kicker/taskbar/taskcontainer.cpp
+++ b/kicker/taskbar/taskcontainer.cpp
@@ -314,7 +314,7 @@ TQSizePolicy TaskContainer::sizePolicy() const
void TaskContainer::resizeEvent( TQResizeEvent * )
{
// calculate the icon rect
- TQRect br( tqstyle().subRect( TQStyle::SR_PushButtonContents, this ) );
+ TQRect br( style().subRect( TQStyle::SR_PushButtonContents, this ) );
iconRect = TQStyle::visualRect( TQRect(br.x() + 2, (height() - 16) / 2, 16, 16), this );
}
@@ -533,7 +533,7 @@ void TaskContainer::drawButton(TQPainter *p)
font.setBold(active);
- TQColorGroup colors = tqpalette().active();
+ TQColorGroup colors = palette().active();
if (TaskBarSettings::useCustomColors())
{
@@ -582,20 +582,20 @@ void TaskContainer::drawButton(TQPainter *p)
bool sunken = isDown() || (alwaysDrawButtons && (active || aboutToActivate));
bool reverse = TQApplication::reverseLayout();
- TQRect br(tqstyle().subRect(TQStyle::SR_PushButtonContents, this));
- TQPoint shift = TQPoint(tqstyle().pixelMetric(TQStyle::PM_ButtonShiftHorizontal),
- tqstyle().pixelMetric(TQStyle::PM_ButtonShiftVertical));
+ TQRect br(style().subRect(TQStyle::SR_PushButtonContents, this));
+ TQPoint shift = TQPoint(style().pixelMetric(TQStyle::PM_ButtonShiftHorizontal),
+ style().pixelMetric(TQStyle::PM_ButtonShiftVertical));
// draw button background
if (drawButton)
{
if (KickerSettings::showDeepButtons()) {
- tqstyle().tqdrawPrimitive(TQStyle::PE_ButtonBevel, p,
+ style().tqdrawPrimitive(TQStyle::PE_ButtonBevel, p,
TQRect(1, 1, width()-3, height()-2),
colors, sunken ? TQStyle::Style_On : TQStyle::Style_Raised);
}
else {
- tqstyle().tqdrawPrimitive(TQStyle::PE_ButtonTool, p,
+ style().tqdrawPrimitive(TQStyle::PE_ButtonTool, p,
TQRect(1, 1, width()-2, height()-2),
colors, sunken ? TQStyle::Style_Down : TQStyle::Style_Raised);
}
@@ -794,7 +794,7 @@ void TaskContainer::drawButton(TQPainter *p)
flags |= TQStyle::Style_Down;
}
- tqstyle().tqdrawPrimitive(e, p, ar, colors, flags);
+ style().tqdrawPrimitive(e, p, ar, colors, flags);
}
// draw mouse over frame in transparent mode