summaryrefslogtreecommitdiffstats
path: root/kbfxlib/common/kbfxpushbutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
commit421b60af92c83b889f8903c2898f2bd07186fcd8 (patch)
treead873a24c9438baed4942fda795430a4c3dc9a9a /kbfxlib/common/kbfxpushbutton.cpp
parent39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff)
downloadkbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz
kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbfxlib/common/kbfxpushbutton.cpp')
-rw-r--r--kbfxlib/common/kbfxpushbutton.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbfxlib/common/kbfxpushbutton.cpp b/kbfxlib/common/kbfxpushbutton.cpp
index e971993..bc62903 100644
--- a/kbfxlib/common/kbfxpushbutton.cpp
+++ b/kbfxlib/common/kbfxpushbutton.cpp
@@ -21,12 +21,12 @@
#include "kbfxpushbutton.h"
-KbfxPushButton::KbfxPushButton ( QWidget *parent, const char *name )
- : KPushButton ( parent, name )
+KbfxPushButton::KbfxPushButton ( TQWidget *tqparent, const char *name )
+ : KPushButton ( tqparent, name )
{
setText ( "P R E V I E W" );
setToggleButton ( TRUE );
- setFocusPolicy ( QWidget::NoFocus );
+ setFocusPolicy ( TQ_NoFocus );
}
KbfxPushButton::~KbfxPushButton()
@@ -34,12 +34,12 @@ KbfxPushButton::~KbfxPushButton()
}
/* process hover events */
-void KbfxPushButton::enterEvent ( QEvent * )
+void KbfxPushButton::enterEvent ( TQEvent * )
{
if ( this->state() == 0 ) this->setPixmap ( ConfigInit().m_KbfxHoverButtonPath );
}
-void KbfxPushButton::leaveEvent ( QEvent * )
+void KbfxPushButton::leaveEvent ( TQEvent * )
{
if ( this->state() == 2 ) this->setPixmap ( ConfigInit().m_KbfxPressedButtonPath );
if ( this->state() == 0 ) this->setPixmap ( ConfigInit().m_KbfxNormalButtonPath );