From b09bffed6b43262948018dfb0f11890850ddf7c1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 20:34:22 +0000 Subject: TQt4 port kdeadmin This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksysv/ksv_core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ksysv/ksv_core.cpp') diff --git a/ksysv/ksv_core.cpp b/ksysv/ksv_core.cpp index 6611211..87d5528 100644 --- a/ksysv/ksv_core.cpp +++ b/ksysv/ksv_core.cpp @@ -59,7 +59,7 @@ TQString ksv::breakWords (const TQString& s, int amount) int pos = -1; for (int i = 1; i < amount; ++i) { - if ((pos = str.find(' ', amount - i, false)) < 0 || (pos > maximum + i)) + if ((pos = str.tqfind(' ', amount - i, false)) < 0 || (pos > maximum + i)) continue; else break; @@ -103,15 +103,15 @@ TQStyleSheet* ksv::styleSheet () // item->setDisplayMode (TQStyleSheetItem::DisplayBlock); item = new TQStyleSheetItem (&style, "start"); // start section - item->setColor (Qt::green); + item->setColor (TQt::green); // item->setContexts ("rl"); item = new TQStyleSheetItem (&style, "stop"); // stop section - item->setColor (Qt::red); + item->setColor (TQt::red); // item->setContexts ("rl"); item = new TQStyleSheetItem (&style, "error"); // signal an error - item->setColor (Qt::red); + item->setColor (TQt::red); item->setLogicalFontSizeStep (1); item = new TQStyleSheetItem (&style, "cmd"); // command line -- cgit v1.2.1