diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 22:17:08 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 22:17:08 +0000 |
commit | f138d74fe16092003b06f5bde9663841929cde7f (patch) | |
tree | e9c497a0e59bc7d34264ac9404740d2ea76f3de4 /kmouth/phraseedit.cpp | |
parent | 3a3c4b256baee79bdcfe72c5e01b9ded9b525900 (diff) | |
download | tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.tar.gz tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.zip |
TQt4 port kdeaccessibility
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1237325 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmouth/phraseedit.cpp')
-rw-r--r-- | kmouth/phraseedit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmouth/phraseedit.cpp b/kmouth/phraseedit.cpp index 000a1f5..4397bb6 100644 --- a/kmouth/phraseedit.cpp +++ b/kmouth/phraseedit.cpp @@ -17,36 +17,36 @@ #include "phraseedit.h" -PhraseEdit::PhraseEdit(const TQString &string, TQWidget *parent) - : KLineEdit (string, parent) { +PhraseEdit::PhraseEdit(const TQString &string, TQWidget *tqparent) + : KLineEdit (string, tqparent) { } PhraseEdit::~PhraseEdit() { } void PhraseEdit::keyPressEvent (TQKeyEvent *e) { - if ((e->state() & Qt::KeyButtonMask) == Qt::ControlButton) { - if (e->key() == Qt::Key_C) { + if ((e->state() & TQt::KeyButtonMask) == TQt::ControlButton) { + if (e->key() == TQt::Key_C) { if (!this->hasSelectedText()) { e->ignore(); return; } } - else if (e->key() == Qt::Key_Insert) { + else if (e->key() == TQt::Key_Insert) { if (!hasSelectedText()) { e->ignore(); return; } } - else if (e->key() == Qt::Key_X) { + else if (e->key() == TQt::Key_X) { if (!hasSelectedText()) { e->ignore(); return; } } } - else if ((e->state() & Qt::KeyButtonMask) == Qt::ShiftButton) { - if (e->key() == Qt::Key_Delete) { + else if ((e->state() & TQt::KeyButtonMask) == TQt::ShiftButton) { + if (e->key() == TQt::Key_Delete) { if (!hasSelectedText()) { e->ignore(); return; |