summaryrefslogtreecommitdiffstats
path: root/src/k3bminibutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /src/k3bminibutton.cpp
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3bminibutton.cpp')
-rw-r--r--src/k3bminibutton.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/k3bminibutton.cpp b/src/k3bminibutton.cpp
index 0d0a1db..9626e47 100644
--- a/src/k3bminibutton.cpp
+++ b/src/k3bminibutton.cpp
@@ -20,14 +20,14 @@
#include "k3bminibutton.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-K3bMiniButton::K3bMiniButton( QWidget *parent, const char * name )
- :QPushButton( parent, name ),
+K3bMiniButton::K3bMiniButton( TQWidget *tqparent, const char * name )
+ :TQPushButton( tqparent, name ),
m_mouseOver( false )
{
- setFocusPolicy( NoFocus );
+ setFocusPolicy( TQ_NoFocus );
}
K3bMiniButton::~K3bMiniButton()
@@ -35,9 +35,9 @@ K3bMiniButton::~K3bMiniButton()
}
-void K3bMiniButton::drawButton( QPainter* p )
+void K3bMiniButton::drawButton( TQPainter* p )
{
- p->fillRect( 0,0, width(), height(), QBrush(colorGroup().brush(QColorGroup::Background)) );
+ p->fillRect( 0,0, width(), height(), TQBrush(tqcolorGroup().brush(TQColorGroup::Background)) );
p->drawPixmap( (width() - pixmap()->width()) / 2, (height() - pixmap()->height()) / 2, *pixmap() );
if( m_mouseOver && !isDown() ){
p->setPen( white );
@@ -45,12 +45,12 @@ void K3bMiniButton::drawButton( QPainter* p )
p->lineTo( 0, 0 );
p->lineTo( width() - 1, 0 );
- p->setPen( colorGroup().dark() );
+ p->setPen( tqcolorGroup().dark() );
p->lineTo( width() - 1, height() - 1 );
p->lineTo( 0, height() - 1 );
}
if( isOn() || isDown() ){
- p->setPen( colorGroup().dark() );
+ p->setPen( tqcolorGroup().dark() );
p->moveTo( 0, height() - 1 );
p->lineTo( 0, 0 );
p->lineTo( width() - 1, 0 );
@@ -61,17 +61,17 @@ void K3bMiniButton::drawButton( QPainter* p )
}
}
-void K3bMiniButton::enterEvent( QEvent * )
+void K3bMiniButton::enterEvent( TQEvent * )
{
m_mouseOver = true;
- repaint();
+ tqrepaint();
}
-void K3bMiniButton::leaveEvent( QEvent * )
+void K3bMiniButton::leaveEvent( TQEvent * )
{
m_mouseOver = false;
- repaint();
+ tqrepaint();
}
#include "k3bminibutton.moc"