summaryrefslogtreecommitdiffstats
path: root/cervisia/logmessageedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/logmessageedit.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/logmessageedit.cpp')
-rw-r--r--cervisia/logmessageedit.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cervisia/logmessageedit.cpp b/cervisia/logmessageedit.cpp
index f861c873..e97a5d68 100644
--- a/cervisia/logmessageedit.cpp
+++ b/cervisia/logmessageedit.cpp
@@ -26,8 +26,8 @@ using Cervisia::LogMessageEdit;
#include <kaccel.h>
-LogMessageEdit::LogMessageEdit(TQWidget* parent)
- : KTextEdit(parent)
+LogMessageEdit::LogMessageEdit(TQWidget* tqparent)
+ : KTextEdit(tqparent)
, KCompletionBase()
, m_completing(false)
, m_completionStartPos(0)
@@ -69,14 +69,14 @@ void LogMessageEdit::setCompletedItems(const TQStringList&)
void LogMessageEdit::keyPressEvent(TQKeyEvent* event)
{
- bool noModifier = (event->state() == NoButton ||
+ bool noModifier = (event->state() == Qt::NoButton ||
event->state() == ShiftButton ||
event->state() == Keypad);
if( noModifier )
{
TQString keycode = event->text();
- if( !keycode.isEmpty() && keycode.unicode()->isPrint() )
+ if( !keycode.isEmpty() && keycode.tqunicode()->isPrint() )
{
KTextEdit::keyPressEvent(event);
tryCompletion();
@@ -132,8 +132,8 @@ void LogMessageEdit::keyPressEvent(TQKeyEvent* event)
}
// any other key (except modifiers) will end the text completion
- if( event->key() != Qt::Key_Shift && event->key() != Qt::Key_Control &&
- event->key() != Qt::Key_Alt && event->key() != Qt::Key_Meta )
+ if( event->key() != TQt::Key_Shift && event->key() != TQt::Key_Control &&
+ event->key() != TQt::Key_Alt && event->key() != TQt::Key_Meta )
{
m_completing = false;
setCheckSpellingEnabled(true);
@@ -159,7 +159,7 @@ void LogMessageEdit::tryCompletion()
if( paragraphText.at(index).isSpace() )
{
if( !m_completing )
- m_completionStartPos = paragraphText.findRev(' ', index-1) + 1;
+ m_completionStartPos = paragraphText.tqfindRev(' ', index-1) + 1;
int length = index - m_completionStartPos;
TQString word = paragraphText.mid(m_completionStartPos, length);