diff options
Diffstat (limited to 'krecipes/src/widgets/kretextedit.cpp')
-rw-r--r-- | krecipes/src/widgets/kretextedit.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/krecipes/src/widgets/kretextedit.cpp b/krecipes/src/widgets/kretextedit.cpp index 84c1a94..61eebea 100644 --- a/krecipes/src/widgets/kretextedit.cpp +++ b/krecipes/src/widgets/kretextedit.cpp @@ -12,12 +12,12 @@ #include <ntqtextstream.h> -#include <kaccel.h> +#include <tdeaccel.h> #include <kdebug.h> -KreTextEdit::KreTextEdit( TQWidget *parent ) : KTextEdit( parent ), KCompletionBase() +KreTextEdit::KreTextEdit( TQWidget *parent ) : KTextEdit( parent ), TDECompletionBase() { - KCompletion * comp = completionObject(); //creates the completion object + TDECompletion * comp = completionObject(); //creates the completion object comp->setIgnoreCase( true ); completing = false; @@ -36,7 +36,7 @@ void KreTextEdit::keyPressEvent( TQKeyEvent *e ) KKey key( e ); KeyBindingMap keys = getKeyBindings(); - KShortcut cut; + TDEShortcut cut; bool noModifier = ( e->state() == NoButton || e->state() == ShiftButton ); if ( noModifier ) { @@ -51,7 +51,7 @@ void KreTextEdit::keyPressEvent( TQKeyEvent *e ) // Handles completion if ( keys[ TextCompletion ].isNull() ) - cut = KStdAccel::shortcut( KStdAccel::TextCompletion ); + cut = TDEStdAccel::shortcut( TDEStdAccel::TextCompletion ); else cut = keys[ TextCompletion ]; @@ -71,23 +71,23 @@ void KreTextEdit::keyPressEvent( TQKeyEvent *e ) // Handles previous match if ( keys[ PrevCompletionMatch ].isNull() ) - cut = KStdAccel::shortcut( KStdAccel::PrevCompletion ); + cut = TDEStdAccel::shortcut( TDEStdAccel::PrevCompletion ); else cut = keys[ PrevCompletionMatch ]; if ( cut.contains( key ) ) { - rotateText( KCompletionBase::PrevCompletionMatch ); + rotateText( TDECompletionBase::PrevCompletionMatch ); return ; } // Handles next match if ( keys[ NextCompletionMatch ].isNull() ) - cut = KStdAccel::shortcut( KStdAccel::NextCompletion ); + cut = TDEStdAccel::shortcut( TDEStdAccel::NextCompletion ); else cut = keys[ NextCompletionMatch ]; if ( cut.contains( key ) ) { - rotateText( KCompletionBase::NextCompletionMatch ); + rotateText( TDECompletionBase::NextCompletionMatch ); return ; } @@ -146,13 +146,13 @@ void KreTextEdit::tryCompletion() } } -void KreTextEdit::rotateText( KCompletionBase::KeyBindingType type ) +void KreTextEdit::rotateText( TDECompletionBase::KeyBindingType type ) { - KCompletion * comp = compObj(); + TDECompletion * comp = compObj(); if ( comp && completing && - ( type == KCompletionBase::PrevCompletionMatch || - type == KCompletionBase::NextCompletionMatch ) ) { - TQString input = ( type == KCompletionBase::PrevCompletionMatch ) ? comp->previousMatch() : comp->nextMatch(); + ( type == TDECompletionBase::PrevCompletionMatch || + type == TDECompletionBase::NextCompletionMatch ) ) { + TQString input = ( type == TDECompletionBase::PrevCompletionMatch ) ? comp->previousMatch() : comp->nextMatch(); // Skip rotation if previous/next match is null or the same text int para, index; |