diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmkeyeventfilter.cpp | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmkeyeventfilter.cpp')
-rw-r--r-- | src/kchmkeyeventfilter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kchmkeyeventfilter.cpp b/src/kchmkeyeventfilter.cpp index 67d4cc6..984c457 100644 --- a/src/kchmkeyeventfilter.cpp +++ b/src/kchmkeyeventfilter.cpp @@ -24,29 +24,29 @@ KCHMKeyEventFilter gKeyEventFilter; KCHMKeyEventFilter::KCHMKeyEventFilter() - : QObject() + : TQObject() { m_shiftPressed = false; m_ctrlPressed = false; } -bool KCHMKeyEventFilter::eventFilter( QObject *, QEvent *e ) +bool KCHMKeyEventFilter::eventFilter( TQObject *, TQEvent *e ) { // Handle KeyPress and KeyRelease events - if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) + if ( e->type() == TQEvent::KeyPress || e->type() == TQEvent::KeyRelease ) { bool * ptr = 0; - QKeyEvent *k = (QKeyEvent *) e; + TQKeyEvent *k = (TQKeyEvent *) e; // We're interested only in Shift and Control - if ( k->key() == Qt::Key_Shift ) + if ( k->key() == TQt::Key_Shift ) ptr = &m_shiftPressed; - else if ( k->key() == Qt::Key_Control ) + else if ( k->key() == TQt::Key_Control ) ptr = &m_ctrlPressed; // Set it if ( ptr ) - *ptr = e->type() == QEvent::KeyPress ? true : false; + *ptr = e->type() == TQEvent::KeyPress ? true : false; } return FALSE; // Standard event processing |