diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:45:12 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:45:12 -0600 |
commit | 5c194e6e7059ddcc96b0e0166ce6157c35fc183e (patch) | |
tree | 0738f35b062d40a4899e85d801ccc3395e56e0ff /twin-styles/kstep | |
parent | 19904387391902d5944ef4209a255cbb1a912940 (diff) | |
download | tdeartwork-5c194e6e7059ddcc96b0e0166ce6157c35fc183e.tar.gz tdeartwork-5c194e6e7059ddcc96b0e0166ce6157c35fc183e.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'twin-styles/kstep')
-rw-r--r-- | twin-styles/kstep/nextclient.cpp | 38 | ||||
-rw-r--r-- | twin-styles/kstep/nextclient.h | 4 |
2 files changed, 21 insertions, 21 deletions
diff --git a/twin-styles/kstep/nextclient.cpp b/twin-styles/kstep/nextclient.cpp index 08867a62..0cafc44a 100644 --- a/twin-styles/kstep/nextclient.cpp +++ b/twin-styles/kstep/nextclient.cpp @@ -1,7 +1,7 @@ #include "nextclient.h" #include <tqdatetime.h> #include <tqdrawutil.h> -#include <tqlayout.h> +#include <layout.h> #include <tqpainter.h> #include <tqbitmap.h> #include <tqlabel.h> @@ -340,14 +340,14 @@ NextButton::NextButton(NextClient *parent, const char *name, void NextButton::reset() { - tqrepaint(false); + repaint(false); } void NextButton::setBitmap(const unsigned char *bitmap, int w, int h) { deco = new TQBitmap(w, h, bitmap, true); deco->setMask(*deco); - tqrepaint(); + repaint(); } void NextButton::drawButton(TQPainter *p) @@ -602,7 +602,7 @@ bool NextClient::mustDrawHandle() const void NextClient::iconChange() { if (button[MENU_IDX] && button[MENU_IDX]->isVisible()) - button[MENU_IDX]->tqrepaint(false); + button[MENU_IDX]->repaint(false); } void NextClient::menuButtonPressed() @@ -658,9 +658,9 @@ void NextClient::resizeEvent(TQResizeEvent *) // TODO ? update border area only? widget()->update(); #if 0 - widget()->update(titlebar->tqgeometry()); + widget()->update(titlebar->geometry()); TQPainter p(widget()); - TQRect t = titlebar->tqgeometry(); + TQRect t = titlebar->geometry(); t.setTop( 0 ); TQRegion r = widget()->rect(); r = r.subtract( t ); @@ -672,7 +672,7 @@ void NextClient::resizeEvent(TQResizeEvent *) void NextClient::captionChange() { - widget()->tqrepaint(titlebar->tqgeometry(), false); + widget()->repaint(titlebar->geometry(), false); } @@ -686,12 +686,12 @@ void NextClient::paintEvent( TQPaintEvent* ) p.drawRect(fr); // Draw title bar - TQRect t = titlebar->tqgeometry(); + TQRect t = titlebar->geometry(); t.setTop(1); p.drawTiledPixmap(t.x()+1, t.y()+1, t.width()-2, t.height()-2, isActive() ? *aTitlePix : *iTitlePix); qDrawShadePanel(&p, t.x(), t.y(), t.width(), t.height()-1, - options()->tqcolorGroup(KDecoration::ColorTitleBar, isActive())); + options()->colorGroup(KDecoration::ColorTitleBar, isActive())); p.drawLine(t.x(), t.bottom(), t.right(), t.bottom()); #if 0 @@ -716,7 +716,7 @@ void NextClient::paintEvent( TQPaintEvent* ) int corner = 16 + 3*handleSize/2; qDrawShadePanel(&p, fr.x() + 1, fr.bottom() - handleSize, corner-1, handleSize, - options()->tqcolorGroup(KDecoration::ColorHandle, isActive()), + options()->colorGroup(KDecoration::ColorHandle, isActive()), false); p.drawTiledPixmap(fr.x() + 2, fr.bottom() - handleSize + 1, corner - 3, handleSize - 2, isActive() ? *aHandlePix : *iHandlePix); @@ -724,7 +724,7 @@ void NextClient::paintEvent( TQPaintEvent* ) qDrawShadePanel(&p, fr.x() + corner, fr.bottom() - handleSize, fr.width() - 2*corner, handleSize, - options()->tqcolorGroup(KDecoration::ColorFrame, isActive()), + options()->colorGroup(KDecoration::ColorFrame, isActive()), false); p.drawTiledPixmap(fr.x() + corner + 1, fr.bottom() - handleSize + 1, fr.width() - 2*corner - 2, handleSize - 2, @@ -732,7 +732,7 @@ void NextClient::paintEvent( TQPaintEvent* ) qDrawShadePanel(&p, fr.right() - corner + 1, fr.bottom() - handleSize, corner - 1, handleSize, - options()->tqcolorGroup(KDecoration::ColorHandle, isActive()), + options()->colorGroup(KDecoration::ColorHandle, isActive()), false); p.drawTiledPixmap(fr.right() - corner + 2, fr.bottom() - handleSize + 1, corner - 3, handleSize - 2, isActive() ? *aHandlePix : *iHandlePix); @@ -741,7 +741,7 @@ void NextClient::paintEvent( TQPaintEvent* ) void NextClient::mouseDoubleClickEvent( TQMouseEvent * e ) { - if (e->button() == Qt::LeftButton && titlebar->tqgeometry().contains( e->pos() ) ) + if (e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) ) titlebarDblClickOperation(); } @@ -753,7 +753,7 @@ void NextClient::wheelEvent( TQWheelEvent * e ) void NextClient::showEvent(TQShowEvent *) { - widget()->tqrepaint(); + widget()->repaint(); } void NextClient::desktopChange() @@ -782,7 +782,7 @@ void NextClient::maximizeChange() void NextClient::activeChange() { - widget()->tqrepaint(false); + widget()->repaint(false); slotReset(); } @@ -839,7 +839,7 @@ void NextClient::keepAboveChange(bool above) TQToolTip::remove(b); TQToolTip::add(b, above ? i18n("Do not keep above others") : i18n("Keep above others")); - b->tqrepaint(false); + b->repaint(false); } } @@ -850,11 +850,11 @@ void NextClient::keepBelowChange(bool below) TQToolTip::remove(b); TQToolTip::add(b, below ? i18n("Do not keep below others") : i18n("Keep below others")); - b->tqrepaint(false); + b->repaint(false); } } -TQSize NextClient::tqminimumSize() const +TQSize NextClient::minimumSize() const { return TQSize(titleHeight * 6 + 2, titleHeight + handleSize + 2); } @@ -870,7 +870,7 @@ void NextClient::reset(unsigned long) if (button[i]) button[i]->reset(); } - widget()->tqrepaint(); + widget()->repaint(); } bool NextClient::eventFilter(TQObject *o, TQEvent *e) diff --git a/twin-styles/kstep/nextclient.h b/twin-styles/kstep/nextclient.h index b24da66d..e2cbe19a 100644 --- a/twin-styles/kstep/nextclient.h +++ b/twin-styles/kstep/nextclient.h @@ -4,7 +4,7 @@ #include <tqvariant.h> #include <tqbitmap.h> #include <kpixmap.h> -#include <tqlayout.h> +#include <layout.h> #include <tqbutton.h> #include <kdecoration.h> #include <kdecorationfactory.h> @@ -61,7 +61,7 @@ protected: void activeChange(); void shadeChange(); void iconChange(); - TQSize tqminimumSize() const; + TQSize minimumSize() const; void resize(const TQSize &size); void borders(int &left, int &right, int &top, int &bottom) const; void reset(unsigned long changed); |