diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /khexedit/lib/controller | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khexedit/lib/controller')
-rw-r--r-- | khexedit/lib/controller/kchareditor.cpp | 8 | ||||
-rw-r--r-- | khexedit/lib/controller/kchareditor.h | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/kcontroller.cpp | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/kcontroller.h | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/keditor.cpp | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/keditor.h | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/knavigator.cpp | 4 | ||||
-rw-r--r-- | khexedit/lib/controller/knavigator.h | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/ktabcontroller.cpp | 4 | ||||
-rw-r--r-- | khexedit/lib/controller/ktabcontroller.h | 2 | ||||
-rw-r--r-- | khexedit/lib/controller/kvalueeditor.cpp | 6 | ||||
-rw-r--r-- | khexedit/lib/controller/kvalueeditor.h | 4 |
12 files changed, 20 insertions, 20 deletions
diff --git a/khexedit/lib/controller/kchareditor.cpp b/khexedit/lib/controller/kchareditor.cpp index 5b48fc6..7225ec7 100644 --- a/khexedit/lib/controller/kchareditor.cpp +++ b/khexedit/lib/controller/kchareditor.cpp @@ -16,7 +16,7 @@ // qt specific -#include <qevent.h> +#include <tqevent.h> // lib specific #include "kcharcolumn.h" #include "kcharcodec.h" @@ -34,17 +34,17 @@ KCharEditor::KCharEditor( KCharColumn *CC, KBufferCursor *BC, KHexEdit *HE, KCon } -bool KCharEditor::handleKeyPress( QKeyEvent *KeyEvent ) +bool KCharEditor::handleKeyPress( TQKeyEvent *KeyEvent ) { bool KeyUsed = false; // some input that should be inserted? if( KeyEvent->text().length() > 0 && !(KeyEvent->state()&( Qt::ControlButton | Qt::AltButton | Qt::MetaButton )) ) { - QChar C = KeyEvent->text()[0]; + TQChar C = KeyEvent->text()[0]; if( C.isPrint() ) { - QByteArray D( 1 ); + TQByteArray D( 1 ); if( CharColumn->codec()->encode(&D[0],C) ) { // clearUndoRedoInfo = false; diff --git a/khexedit/lib/controller/kchareditor.h b/khexedit/lib/controller/kchareditor.h index 74c3d8d..fba1f66 100644 --- a/khexedit/lib/controller/kchareditor.h +++ b/khexedit/lib/controller/kchareditor.h @@ -32,7 +32,7 @@ class KCharEditor : public KEditor KCharEditor( KCharColumn *CC, KBufferCursor *BC, KHexEdit *HE, KController *P ); public: // KEditor API - virtual bool handleKeyPress( QKeyEvent *KeyEvent ); + virtual bool handleKeyPress( TQKeyEvent *KeyEvent ); protected: KCharColumn *CharColumn; diff --git a/khexedit/lib/controller/kcontroller.cpp b/khexedit/lib/controller/kcontroller.cpp index 490da93..b9c42a6 100644 --- a/khexedit/lib/controller/kcontroller.cpp +++ b/khexedit/lib/controller/kcontroller.cpp @@ -28,7 +28,7 @@ KController::KController( KHexEdit* HE, KController *P ) { } -bool KController::handleKeyPress( QKeyEvent *KeyEvent ) +bool KController::handleKeyPress( TQKeyEvent *KeyEvent ) { return Parent ? Parent->handleKeyPress( KeyEvent ) : false; } diff --git a/khexedit/lib/controller/kcontroller.h b/khexedit/lib/controller/kcontroller.h index daeb0d5..be1f9fc 100644 --- a/khexedit/lib/controller/kcontroller.h +++ b/khexedit/lib/controller/kcontroller.h @@ -32,7 +32,7 @@ class KController KController( KHexEdit *HE, KController *P ); public: // KController API - virtual bool handleKeyPress( QKeyEvent *KeyEvent ); + virtual bool handleKeyPress( TQKeyEvent *KeyEvent ); protected: KController *Parent; diff --git a/khexedit/lib/controller/keditor.cpp b/khexedit/lib/controller/keditor.cpp index 7d4e92f..5678b09 100644 --- a/khexedit/lib/controller/keditor.cpp +++ b/khexedit/lib/controller/keditor.cpp @@ -35,7 +35,7 @@ KEditor::KEditor( KBufferCursor *BC, KHexEdit* HE, KController *P ) } -bool KEditor::handleKeyPress( QKeyEvent *KeyEvent ) +bool KEditor::handleKeyPress( TQKeyEvent *KeyEvent ) { bool clearUndoRedoInfo = true; bool ShiftPressed = KeyEvent->state() & Qt::ShiftButton; diff --git a/khexedit/lib/controller/keditor.h b/khexedit/lib/controller/keditor.h index dc2b0fd..e4fa06c 100644 --- a/khexedit/lib/controller/keditor.h +++ b/khexedit/lib/controller/keditor.h @@ -37,7 +37,7 @@ class KEditor : public KController KEditor( KBufferCursor *BC, KHexEdit *HE, KController *P ); public: // API - virtual bool handleKeyPress( QKeyEvent *KeyEvent ); + virtual bool handleKeyPress( TQKeyEvent *KeyEvent ); protected: /** executes keyboard Action \a Action. This is normally called by a key event handler. */ diff --git a/khexedit/lib/controller/knavigator.cpp b/khexedit/lib/controller/knavigator.cpp index 51c8048..d865d12 100644 --- a/khexedit/lib/controller/knavigator.cpp +++ b/khexedit/lib/controller/knavigator.cpp @@ -17,7 +17,7 @@ // qt specific -#include <qevent.h> +#include <tqevent.h> // lib specific #include "kdatabuffer.h" #include "kbufferranges.h" @@ -34,7 +34,7 @@ KNavigator::KNavigator( KHexEdit* HE, KController *P ) { } -bool KNavigator::handleKeyPress( QKeyEvent *KeyEvent ) +bool KNavigator::handleKeyPress( TQKeyEvent *KeyEvent ) { bool KeyUsed = true; diff --git a/khexedit/lib/controller/knavigator.h b/khexedit/lib/controller/knavigator.h index 4615419..c20cd84 100644 --- a/khexedit/lib/controller/knavigator.h +++ b/khexedit/lib/controller/knavigator.h @@ -34,7 +34,7 @@ class KNavigator : public KController KNavigator( KHexEdit *HE, KController *P ); public: // KEditor API - virtual bool handleKeyPress( QKeyEvent *KeyEvent ); + virtual bool handleKeyPress( TQKeyEvent *KeyEvent ); protected: /** moves the cursor according to the action, handles all drawing */ diff --git a/khexedit/lib/controller/ktabcontroller.cpp b/khexedit/lib/controller/ktabcontroller.cpp index 76c3051..0531b2c 100644 --- a/khexedit/lib/controller/ktabcontroller.cpp +++ b/khexedit/lib/controller/ktabcontroller.cpp @@ -16,7 +16,7 @@ // qt specific -#include <qevent.h> +#include <tqevent.h> // lib specific #include "kvaluecolumn.h" #include "kcharcolumn.h" @@ -33,7 +33,7 @@ KTabController::KTabController( KHexEdit* HE, KController *P ) } -bool KTabController::handleKeyPress( QKeyEvent *KeyEvent ) +bool KTabController::handleKeyPress( TQKeyEvent *KeyEvent ) { bool KeyUsed = false; diff --git a/khexedit/lib/controller/ktabcontroller.h b/khexedit/lib/controller/ktabcontroller.h index e1898b4..a17d55d 100644 --- a/khexedit/lib/controller/ktabcontroller.h +++ b/khexedit/lib/controller/ktabcontroller.h @@ -32,7 +32,7 @@ class KTabController : public KController KTabController( KHexEdit *HE, KController *P ); public: // API - virtual bool handleKeyPress( QKeyEvent *KeyEvent ); + virtual bool handleKeyPress( TQKeyEvent *KeyEvent ); public: bool tabChangesFocus() const; diff --git a/khexedit/lib/controller/kvalueeditor.cpp b/khexedit/lib/controller/kvalueeditor.cpp index ebfb589..3bf4c9b 100644 --- a/khexedit/lib/controller/kvalueeditor.cpp +++ b/khexedit/lib/controller/kvalueeditor.cpp @@ -16,7 +16,7 @@ // qt specific -#include <qevent.h> +#include <tqevent.h> // lib specific #include "kvaluecolumn.h" #include "kbufferranges.h" @@ -36,7 +36,7 @@ KValueEditor::KValueEditor( KValueColumn *VC, KBufferCursor *BC, KHexEdit* HE, K } -bool KValueEditor::handleKeyPress( QKeyEvent *KeyEvent ) +bool KValueEditor::handleKeyPress( TQKeyEvent *KeyEvent ) { bool KeyUsed = true; @@ -79,7 +79,7 @@ bool KValueEditor::handleKeyPress( QKeyEvent *KeyEvent ) if( KeyEvent->text().length() > 0 && ( !(KeyEvent->state()&( Qt::ControlButton | Qt::AltButton | Qt::MetaButton )) ) ) { - QChar C = KeyEvent->text()[0]; + TQChar C = KeyEvent->text()[0]; // no usable char? if( !C.isLetterOrNumber() ) { diff --git a/khexedit/lib/controller/kvalueeditor.h b/khexedit/lib/controller/kvalueeditor.h index 496bcde..4656c36 100644 --- a/khexedit/lib/controller/kvalueeditor.h +++ b/khexedit/lib/controller/kvalueeditor.h @@ -39,7 +39,7 @@ class KValueEditor: public KEditor virtual ~KValueEditor(); public: // KEditor API - virtual bool handleKeyPress( QKeyEvent *KeyEvent ); + virtual bool handleKeyPress( TQKeyEvent *KeyEvent ); public: void reset(); @@ -62,7 +62,7 @@ class KValueEditor: public KEditor /** stores the old byte value */ unsigned char OldValue; /** buffer with the */ - QString ByteBuffer; + TQString ByteBuffer; }; inline KValueEditor::~KValueEditor() {} |