diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
commit | 421b60af92c83b889f8903c2898f2bd07186fcd8 (patch) | |
tree | ad873a24c9438baed4942fda795430a4c3dc9a9a /src/kbfxspinxpopup.cpp | |
parent | 39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff) | |
download | kbfx-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 'src/kbfxspinxpopup.cpp')
-rw-r--r-- | src/kbfxspinxpopup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kbfxspinxpopup.cpp b/src/kbfxspinxpopup.cpp index 2270eb8..677687d 100644 --- a/src/kbfxspinxpopup.cpp +++ b/src/kbfxspinxpopup.cpp @@ -32,7 +32,7 @@ // #include "kbfxspinxpopup.h" -KbfxSpinxPopUp::KbfxSpinxPopUp ( QWidget * parent, const char * name ) :QPopupMenu ( parent,name ) +KbfxSpinxPopUp::KbfxSpinxPopUp ( TQWidget * tqparent, const char * name ) :TQPopupMenu ( tqparent,name ) { m_mainItem = 0L; } @@ -43,14 +43,14 @@ KbfxSpinxPopUp::~KbfxSpinxPopUp() } void -KbfxSpinxPopUp::keyPressEvent ( QKeyEvent * e ) +KbfxSpinxPopUp::keyPressEvent ( TQKeyEvent * e ) { /* - if ( e->key() == Qt::Key_Tab ) + if ( e->key() == TQt::Key_Tab ) { return ; } - if ( e->key() == Qt::Key_Up ) + if ( e->key() == TQt::Key_Up ) { m_mainItem->grabEvent ( e ); // e->ignore(); @@ -61,7 +61,7 @@ KbfxSpinxPopUp::keyPressEvent ( QKeyEvent * e ) } void -KbfxSpinxPopUp::addItem ( QWidget * item,int index ) +KbfxSpinxPopUp::addItem ( TQWidget * item,int index ) { m_mainItem = ( KbfxSpinxMenuWidget* ) item; this->insertItem ( item,index ); |