diff options
Diffstat (limited to 'kword/KWCanvas.cpp')
-rw-r--r-- | kword/KWCanvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kword/KWCanvas.cpp b/kword/KWCanvas.cpp index fb0889f6..3412b029 100644 --- a/kword/KWCanvas.cpp +++ b/kword/KWCanvas.cpp @@ -1725,7 +1725,7 @@ bool KWCanvas::eventFilter( TQObject *o, TQEvent *e ) { // kdDebug() << " KeyPress m_currentFrameSetEdit=" << m_currentFrameSetEdit << " isRW="<<m_doc->isReadWrite() << endl; // kdDebug() << " m_printing=" << m_printing << " mousemode=" << m_mouseMode << " (MM_EDIT=" << MM_EDIT<<")"<<endl; - TQKeyEvent * keyev = TQT_TQKEYEVENT(e); + TQKeyEvent * keyev = static_cast<TQKeyEvent*>(e); #ifndef NDEBUG // Debug keys if ( ( keyev->state() & ControlButton ) && ( keyev->state() & ShiftButton ) ) @@ -1768,7 +1768,7 @@ bool KWCanvas::eventFilter( TQObject *o, TQEvent *e ) { // kdDebug() << " KeyPress m_currentFrameSetEdit=" << m_currentFrameSetEdit << " isRW="<<m_doc->isReadWrite() << endl; // kdDebug() << " m_printing=" << m_printing << " mousemode=" << m_mouseMode << " (MM_EDIT=" << MM_EDIT<<")"<<endl; - TQKeyEvent * keyev = TQT_TQKEYEVENT(e); + TQKeyEvent * keyev = static_cast<TQKeyEvent*>(e); // By default PgUp and PgDown move the scrollbars and not the caret anymore - this is done here if ( !m_doc->pgUpDownMovesCaret() && ( (keyev->state() & ShiftButton) == 0 ) && ( keyev->key() == TQt::Key_PageUp || keyev->key() == Key_PageDown ) ) @@ -1879,7 +1879,7 @@ bool KWCanvas::eventFilter( TQObject *o, TQEvent *e ) } break; case TQEvent::KeyRelease: { - TQKeyEvent * keyev = TQT_TQKEYEVENT(e); + TQKeyEvent * keyev = static_cast<TQKeyEvent*>(e); if ( keyev->key() == TQt::Key_Control ) { TQPoint mousep = mapFromGlobal(TQCursor::pos()) + TQPoint( contentsX(), contentsY() ); |