diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:20:47 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:20:47 -0600 |
commit | 36770452958a79a095f9d9e605e79f66cfa79a2b (patch) | |
tree | 8c5656dfa9510a332be71bc62e896540eaf76b52 /kmines | |
parent | c0f375feba0103bed2bac1b1f05e76e9ae28fa89 (diff) | |
download | tdegames-36770452958a79a095f9d9e605e79f66cfa79a2b.tar.gz tdegames-36770452958a79a095f9d9e605e79f66cfa79a2b.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'kmines')
-rw-r--r-- | kmines/frame.cpp | 8 | ||||
-rw-r--r-- | kmines/status.cpp | 2 |
2 files changed, 5 insertions, 5 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()); } diff --git a/kmines/status.cpp b/kmines/status.cpp index 7940a388..15301115 100644 --- a/kmines/status.cpp +++ b/kmines/status.cpp @@ -54,7 +54,7 @@ Status::Status(TQWidget *parent) _solver = new Solver(TQT_TQOBJECT(this)); connect(_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool))); -// top tqlayout +// top layout TQGridLayout *top = new TQGridLayout(this, 2, 5, 10, 10); top->setColStretch(1, 1); top->setColStretch(3, 1); |