diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kwin/clients/web/WebButton.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/clients/web/WebButton.cpp')
-rw-r--r-- | kwin/clients/web/WebButton.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kwin/clients/web/WebButton.cpp b/kwin/clients/web/WebButton.cpp index 66bedc19f..61811accc 100644 --- a/kwin/clients/web/WebButton.cpp +++ b/kwin/clients/web/WebButton.cpp @@ -19,7 +19,7 @@ Boston, MA 02110-1301, USA. */ -#include <qpainter.h> +#include <tqpainter.h> #include "WebButton.h" #include "Web.h" @@ -124,35 +124,35 @@ void WebButton::reset(unsigned long changed) } void -WebButton::enterEvent(QEvent * e) +WebButton::enterEvent(TQEvent * e) { mouseOver_ = true; repaint(); - QButton::enterEvent(e); + TQButton::enterEvent(e); } void -WebButton::leaveEvent(QEvent * e) +WebButton::leaveEvent(TQEvent * e) { mouseOver_ = false; repaint(); - QButton::leaveEvent(e); + TQButton::leaveEvent(e); } void -WebButton::drawButton(QPainter *p) +WebButton::drawButton(TQPainter *p) { - QPen highlightPen; + TQPen highlightPen; if (isDown() ) - highlightPen = QPen(colorGroup().light()); + highlightPen = TQPen(colorGroup().light()); else { if (mouseOver_) - highlightPen = QPen(colorGroup().highlight()); + highlightPen = TQPen(colorGroup().highlight()); else - highlightPen = QPen(NoPen); + highlightPen = TQPen(NoPen); } p->fillRect(rect(), colorGroup().background()); @@ -188,7 +188,7 @@ WebButton::drawButton(QPainter *p) p->setPen(highlightPen); if (shape_) - p->setClipRegion(QRegion(rect()) - QRect(0, 0, 6, 6)); + p->setClipRegion(TQRegion(rect()) - TQRect(0, 0, 6, 6)); p->drawRect(2, 2, width() - 4, height() - 4); if (shape_) @@ -224,7 +224,7 @@ WebButton::drawButton(QPainter *p) p->setPen(highlightPen); if (shape_) - p->setClipRegion(QRegion(rect()) - QRect(width() - 6, 0, 6, 6)); + p->setClipRegion(TQRegion(rect()) - TQRect(width() - 6, 0, 6, 6)); p->drawRect(2, 2, width() - 4, height() - 4); if (shape_) @@ -260,7 +260,7 @@ WebButton::drawButton(QPainter *p) // Draw icon. - QPoint center(rect().center()); + TQPoint center(rect().center()); int bwby2(bitmap_.width() / 2); // Bitmap Width BY 2 int bhby2(bitmap_.height() / 2); // Bitmap Height BY 2 @@ -275,9 +275,9 @@ WebButton::drawButton(QPainter *p) WebButton::setBitmap(const unsigned char *bitmap) { if (bitmap) - bitmap_ = QBitmap(8,8, bitmap, true); + bitmap_ = TQBitmap(8,8, bitmap, true); else - bitmap_ = QBitmap(8,8); + bitmap_ = TQBitmap(8,8); bitmap_.setMask(bitmap_); } |