diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:47:36 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:47:36 -0600 |
commit | 97d1732e257f8700488d7ca1660ae7eba8fc6065 (patch) | |
tree | 4c6397ed2c1dd6f7c3354b5b87f313547d92a35f /kmines/frame.cpp | |
parent | 9c27a1a03e02fd53aedc1a182444b35fd8e14967 (diff) | |
download | tdegames-97d1732e257f8700488d7ca1660ae7eba8fc6065.tar.gz tdegames-97d1732e257f8700488d7ca1660ae7eba8fc6065.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmines/frame.cpp')
-rw-r--r-- | kmines/frame.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kmines/frame.cpp b/kmines/frame.cpp index 5eee07ba..2b348694 100644 --- a/kmines/frame.cpp +++ b/kmines/frame.cpp @@ -36,7 +36,7 @@ FieldFrame::FieldFrame(TQWidget *parent) void FieldFrame::adjustSize() { - setFixedSize(tqsizeHint()); + setFixedSize(sizeHint()); _button.resize(Settings::caseSize(), Settings::caseSize()); TQBitmap mask; @@ -124,22 +124,22 @@ void FieldFrame::drawBox(TQPainter &painter, const TQPoint &p, bool hasFocus) const { qDrawShadePanel(&painter, p.x(), p.y(), _button.width(), _button.height(), - tqcolorGroup(), pressed, 2, - &tqcolorGroup().brush(TQColorGroup::Background)); + colorGroup(), pressed, 2, + &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, - tqcolorGroup(), TQStyle::Style_Enabled); + colorGroup(), TQStyle::Style_Enabled); painter.resetXForm(); } 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, tqcolorGroup(), true, pixmap, + tqstyle().drawItem(&painter, r, AlignCenter, colorGroup(), true, pixmap, text, -1, &color); if ( advised!=-1 ) - tqstyle().drawItem(&painter, r, AlignCenter, tqcolorGroup(), true, + tqstyle().drawItem(&painter, r, AlignCenter, colorGroup(), true, &_advised[advised], TQString()); } |