From 48afe4d8df11f862f7ccc60f0594991f857f81db Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:58:18 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 5c194e6e7059ddcc96b0e0166ce6157c35fc183e. --- twin-styles/openlook/OpenLook.cpp | 70 +++++++++++++++++++-------------------- twin-styles/openlook/OpenLook.h | 2 +- 2 files changed, 36 insertions(+), 36 deletions(-) (limited to 'twin-styles/openlook') diff --git a/twin-styles/openlook/OpenLook.cpp b/twin-styles/openlook/OpenLook.cpp index 781220d8..46398e30 100644 --- a/twin-styles/openlook/OpenLook.cpp +++ b/twin-styles/openlook/OpenLook.cpp @@ -26,7 +26,7 @@ #include // for usleep #include -#include +#include #include #include #include @@ -215,7 +215,7 @@ OpenLook::shadeChange() { } -TQSize OpenLook::minimumSize() const +TQSize OpenLook::tqminimumSize() const { int left, right, top, bottom; borders(left, right, top, bottom); @@ -226,7 +226,7 @@ TQSize OpenLook::minimumSize() const OpenLook::resize(const TQSize& s) { widget()->resize(s); - widget()->repaint(); //there is some strange wrong repaint of the frame without + widget()->tqrepaint(); //there is some strange wrong tqrepaint of the frame without } void @@ -252,9 +252,9 @@ OpenLook::paintEvent(TQPaintEvent * pe) TQBrush titleBackground(options()->color(KDecoration::ColorTitleBar, true)); if (isActive()) - qDrawShadePanel(&p, tr, widget()->colorGroup(), true, 1, &titleBackground); + qDrawShadePanel(&p, tr, widget()->tqcolorGroup(), true, 1, &titleBackground); else - p.fillRect(tr, widget()->colorGroup().brush(TQColorGroup::Background)); + p.fillRect(tr, widget()->tqcolorGroup().brush(TQColorGroup::Background)); p.setClipRegion(clipRegion); @@ -272,7 +272,7 @@ OpenLook::paintEvent(TQPaintEvent * pe) void OpenLook::showEvent(TQShowEvent *) { - widget()->repaint(); + widget()->tqrepaint(); } void @@ -302,7 +302,7 @@ OpenLook::resizeEvent(TQResizeEvent* e) void OpenLook::activeChange() { - widget()->repaint(); + widget()->tqrepaint(); } KDecoration::Position @@ -333,13 +333,13 @@ OpenLook::desktopChange() void OpenLook::maximizeChange() { - widget()->repaint(false); + widget()->tqrepaint(false); } void OpenLook::doLayout() { - TQVBoxLayout * layout = new TQVBoxLayout(widget(), openLookMargin); + TQVBoxLayout * tqlayout = new TQVBoxLayout(widget(), openLookMargin); titleSpacer_ = new TQSpacerItem @@ -350,12 +350,12 @@ OpenLook::doLayout() TQSizePolicy::Fixed ); - layout->addItem(titleSpacer_); + tqlayout->addItem(titleSpacer_); - layout->addSpacing(2); + tqlayout->addSpacing(2); TQBoxLayout * midLayout = - new TQBoxLayout(layout, TQBoxLayout::LeftToRight, 0, 0); + new TQBoxLayout(tqlayout, TQBoxLayout::LeftToRight, 0, 0); if (isPreview()) { midLayout->addWidget(new TQLabel( @@ -377,7 +377,7 @@ OpenLook::animateMinimize(bool /*iconify*/) if (!icongeom.isValid()) return false; - TQRect wingeom(geometry()); + TQRect wingeom(tqgeometry()); TQPainter p(workspaceWidget()); @@ -482,7 +482,7 @@ OpenLook::paintTopLeftRect(TQPainter & p) const int x2(r.right()); int y2(r.bottom()); - p.setPen(widget()->colorGroup().light()); + p.setPen(widget()->tqcolorGroup().light()); p.drawLine(x1, y1, x2, y1); p.drawLine(x1, y1 + 1, x1, y2); @@ -490,7 +490,7 @@ OpenLook::paintTopLeftRect(TQPainter & p) const p.fillRect(x1 + 1, y1 + 1, r.width()-2, openLookMargin-2, handleColour); p.fillRect(x1 + 1, y1 + 1, openLookMargin-2, r.height()-2, handleColour); - p.setPen(widget()->colorGroup().dark()); + p.setPen(widget()->tqcolorGroup().dark()); p.drawLine(x2, y1 + 1, x2, y1 + openLookMargin-1); @@ -513,7 +513,7 @@ OpenLook::paintTopRightRect(TQPainter & p) const int x2(r.right()); int y2(r.bottom()); - p.setPen(widget()->colorGroup().light()); + p.setPen(widget()->tqcolorGroup().light()); p.drawLine(x1, y1, x2, y1); p.drawLine(x1, y1 + 1, x1, y1 + openLookMargin-1); @@ -522,7 +522,7 @@ OpenLook::paintTopRightRect(TQPainter & p) const p.fillRect(x1 + 1, y1 + 1, r.width()-2, openLookMargin-2, handleColour); p.fillRect(x2 - openLookMargin + 2, y1 + 1, openLookMargin-2, r.height()-2, handleColour); - p.setPen(widget()->colorGroup().dark()); + p.setPen(widget()->tqcolorGroup().dark()); p.drawLine(x1 + 1, y1 + openLookMargin-1, x2 - openLookMargin+1, y1 + openLookMargin-1); p.drawLine(x2, y1 + 1, x2, y2); @@ -541,7 +541,7 @@ OpenLook::paintBottomLeftRect(TQPainter & p) const int x2(r.right()); int y2(r.bottom()); - p.setPen(widget()->colorGroup().light()); + p.setPen(widget()->tqcolorGroup().light()); p.drawLine(x1, y1, x1 + openLookMargin-1, y1); p.drawLine(x1, y1 + 1, x1, y2); @@ -550,7 +550,7 @@ OpenLook::paintBottomLeftRect(TQPainter & p) const p.fillRect(x1 + 1, y2 - openLookMargin + 2, r.width()-2, openLookMargin-2, handleColour); p.fillRect(x1 + 1, y1 + 1, openLookMargin-2, r.height()-2, handleColour); - p.setPen(widget()->colorGroup().dark()); + p.setPen(widget()->tqcolorGroup().dark()); p.drawLine(x1 + openLookMargin-1, y1 + 1, x1 + openLookMargin-1, y2 - openLookMargin); p.drawLine(x1 + 1, y2, x2, y2); @@ -569,7 +569,7 @@ OpenLook::paintBottomRightRect(TQPainter & p) const int x2(r.right()); int y2(r.bottom()); - p.setPen(widget()->colorGroup().light()); + p.setPen(widget()->tqcolorGroup().light()); p.drawLine(x1, y2 - openLookMargin+1, x1, y2); p.drawLine(x1 + 1, y2 - openLookMargin+1, x2 - openLookMargin+1, y2 - openLookMargin+1); @@ -579,7 +579,7 @@ OpenLook::paintBottomRightRect(TQPainter & p) const p.fillRect(x1 + 1, y2 - openLookMargin + 2, r.width()-2, openLookMargin-2, handleColour); p.fillRect(x2 - openLookMargin + 2, y1 + 1, openLookMargin-2, r.height()-2, handleColour); - p.setPen(widget()->colorGroup().dark()); + p.setPen(widget()->tqcolorGroup().dark()); p.drawLine(x1 + 1, y2, x2, y2); p.drawLine(x2, y1 + 1, x2, y2 - 1); @@ -609,16 +609,16 @@ OpenLook::paintButton(TQPainter & p) const r.width() - 2, r.height() - 2, buttonDown_ - ? widget()->colorGroup().dark() + ? widget()->tqcolorGroup().dark() : options()->color(KDecoration::ColorButtonBg, isActive()) ); - p.setPen(buttonDown_ ? widget()->colorGroup().dark() : widget()->colorGroup().light()); + p.setPen(buttonDown_ ? widget()->tqcolorGroup().dark() : widget()->tqcolorGroup().light()); p.drawLine(r.left() + 1, r.top(), r.right() - 1, r.top()); p.drawLine(r.left(), r.top() + 1, r.left(), r.bottom() - 1); - p.setPen(buttonDown_ ? widget()->colorGroup().light() : widget()->colorGroup().dark()); + p.setPen(buttonDown_ ? widget()->tqcolorGroup().light() : widget()->tqcolorGroup().dark()); p.drawLine(r.right(), r.top() + 1, r.right(), r.bottom() - 1); p.drawLine(r.left() + 1, r.bottom(), r.right() - 1, r.bottom()); @@ -638,7 +638,7 @@ OpenLook::paintArrow(TQPainter & p) const TQPointArray poly(3); - p.setBrush(widget()->colorGroup().mid()); + p.setBrush(widget()->tqcolorGroup().mid()); poly.setPoint(0, x, y); poly.setPoint(1, x + w - 1, y); @@ -646,13 +646,13 @@ OpenLook::paintArrow(TQPainter & p) const p.drawPolygon(poly); - p.setPen(widget()->colorGroup().dark()); + p.setPen(widget()->tqcolorGroup().dark()); p.drawLine(x, y, x + w - 1, y); p.drawLine(x, y, x + (w / 2), y + h - 1); - p.setPen(widget()->colorGroup().light()); + p.setPen(widget()->tqcolorGroup().light()); p.drawLine(x + (w / 2), y + h - 1, x + w - 1, y); } @@ -669,10 +669,10 @@ OpenLook::paintBorder(TQPainter & p) const uint r = widget()->rect().right(); uint b = widget()->rect().bottom(); - p.fillRect(x + cs, y, w - cs - cs, 2, widget()->colorGroup().shadow()); - p.fillRect(x + cs, b - 1, w - cs - cs, 2, widget()->colorGroup().shadow()); - p.fillRect(x, y + cs, 2, h - cs - cs, widget()->colorGroup().shadow()); - p.fillRect(r - 1, y + cs, 2, h - cs - cs, widget()->colorGroup().shadow()); + p.fillRect(x + cs, y, w - cs - cs, 2, widget()->tqcolorGroup().shadow()); + p.fillRect(x + cs, b - 1, w - cs - cs, 2, widget()->tqcolorGroup().shadow()); + p.fillRect(x, y + cs, 2, h - cs - cs, widget()->tqcolorGroup().shadow()); + p.fillRect(r - 1, y + cs, 2, h - cs - cs, widget()->tqcolorGroup().shadow()); TQColor frameColour(options()->color(KDecoration::ColorFrame, isActive())); @@ -687,14 +687,14 @@ OpenLook::paintBorder(TQPainter & p) const titleRect().bottom() + 1, width() - 2 * openLookMargin, 2, - widget()->colorGroup().background() + widget()->tqcolorGroup().background() ); } TQRect OpenLook::titleRect() const { - return titleSpacer_->geometry(); + return titleSpacer_->tqgeometry(); } bool @@ -704,7 +704,7 @@ OpenLook::isButtonPress(TQMouseEvent * e) buttonDown_ = buttonRect().contains(mousePressPoint_); - widget()->repaint(buttonRect()); + widget()->tqrepaint(buttonRect()); return buttonDown_; } @@ -717,7 +717,7 @@ OpenLook::isButtonRelease(TQMouseEvent * e) return true; } buttonDown_ = false; - widget()->repaint(buttonRect()); + widget()->tqrepaint(buttonRect()); return false; } diff --git a/twin-styles/openlook/OpenLook.h b/twin-styles/openlook/OpenLook.h index 4be8ca1a..98db37af 100644 --- a/twin-styles/openlook/OpenLook.h +++ b/twin-styles/openlook/OpenLook.h @@ -60,7 +60,7 @@ namespace OpenLook void iconChange(); void maximizeChange(); void borders(int &left, int &right, int &top, int &bottom) const; - TQSize minimumSize() const; + TQSize tqminimumSize() const; void resize( const TQSize& ); virtual void mouseDoubleClickEvent(TQMouseEvent *); virtual void wheelEvent(TQWheelEvent *e); -- cgit v1.2.1