diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
commit | 99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch) | |
tree | eff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/protocolview.cpp | |
parent | 1c104292188541106338d4940b0f04beeb4301a0 (diff) | |
download | tdesdk-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/protocolview.cpp')
-rw-r--r-- | cervisia/protocolview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cervisia/protocolview.cpp b/cervisia/protocolview.cpp index 2de8405f..b4456331 100644 --- a/cervisia/protocolview.cpp +++ b/cervisia/protocolview.cpp @@ -32,15 +32,15 @@ #include "cvsjob_stub.h" -ProtocolView::ProtocolView(const TQCString& appId, TQWidget *parent, const char *name) - : TQTextEdit(parent, name) +ProtocolView::ProtocolView(const TQCString& appId, TQWidget *tqparent, const char *name) + : TQTextEdit(tqparent, name) , job(0) , m_isUpdateJob(false) { setReadOnly(true); setUndoRedoEnabled(false); setTabChangesFocus(true); - setTextFormat(Qt::LogText); + setTextFormat(TQt::LogText); KConfig *config = CervisiaPart::config(); config->setGroup("LookAndFeel"); @@ -124,7 +124,7 @@ void ProtocolView::slotJobExited(bool normalExit, int exitStatus) if( normalExit ) { if( exitStatus ) - msg = i18n("[Exited with status %1]\n").arg(exitStatus); + msg = i18n("[Exited with status %1]\n").tqarg(exitStatus); else msg = i18n("[Finished]\n"); } @@ -142,7 +142,7 @@ void ProtocolView::slotJobExited(bool normalExit, int exitStatus) void ProtocolView::processOutput() { int pos; - while ( (pos = buf.find('\n')) != -1) + while ( (pos = buf.tqfind('\n')) != -1) { TQString line = buf.left(pos); if (!line.isEmpty()) @@ -180,8 +180,8 @@ void ProtocolView::appendLine(const TQString &line) color = remoteChangeColor; append(color.isValid() - ? TQString("<font color=\"%1\"><b>%2</b></font>").arg(color.name()) - .arg(escapedLine) + ? TQString("<font color=\"%1\"><b>%2</b></font>").tqarg(color.name()) + .tqarg(escapedLine) : escapedLine); } |