summaryrefslogtreecommitdiffstats
path: root/kmines/frame.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-21 14:20:47 -0600
committerSlávek Banko <[email protected]>2012-06-04 01:10:54 +0200
commitedee609d80715382db83adbc8b00c7f74793edcb (patch)
treeb11a53fb2d6b02c5f7613b8fcd724f4b7d5837bf /kmines/frame.cpp
parent00e58f1937047eb6c23edbdb3ae7ed5feec7a572 (diff)
downloadtdegames-edee609d80715382db83adbc8b00c7f74793edcb.tar.gz
tdegames-edee609d80715382db83adbc8b00c7f74793edcb.zip
Rename obsolete tq methods to standard names
(cherry picked from commit 36770452958a79a095f9d9e605e79f66cfa79a2b)
Diffstat (limited to 'kmines/frame.cpp')
-rw-r--r--kmines/frame.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmines/frame.cpp b/kmines/frame.cpp
index 2b348694..91cca53e 100644
--- a/kmines/frame.cpp
+++ b/kmines/frame.cpp
@@ -128,8 +128,8 @@ void FieldFrame::drawBox(TQPainter &painter, const TQPoint &p,
&colorGroup().brush(TQColorGroup::Background));
if (hasFocus) {
painter.translate(p.x(), p.y());
- TQRect fbr = tqstyle().subRect(TQStyle::SR_PushButtonFocusRect, &_button);
- tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, fbr,
+ TQRect fbr = style().subRect(TQStyle::SR_PushButtonFocusRect, &_button);
+ style().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, fbr,
colorGroup(), TQStyle::Style_Enabled);
painter.resetXForm();
}
@@ -137,9 +137,9 @@ void FieldFrame::drawBox(TQPainter &painter, const TQPoint &p,
TQRect r(p, _button.size());
const TQPixmap *pixmap = (type==NoPixmap ? 0 : &_pixmaps[type]);
TQColor color = (nbMines==0 ? black : Settings::mineColor(nbMines-1));
- tqstyle().drawItem(&painter, r, AlignCenter, colorGroup(), true, pixmap,
+ style().drawItem(&painter, r, AlignCenter, colorGroup(), true, pixmap,
text, -1, &color);
if ( advised!=-1 )
- tqstyle().drawItem(&painter, r, AlignCenter, colorGroup(), true,
+ style().drawItem(&painter, r, AlignCenter, colorGroup(), true,
&_advised[advised], TQString());
}