summaryrefslogtreecommitdiffstats
path: root/ksysv/ksv_core.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /ksysv/ksv_core.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysv/ksv_core.cpp')
-rw-r--r--ksysv/ksv_core.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/ksysv/ksv_core.cpp b/ksysv/ksv_core.cpp
index a4e2b2c..6611211 100644
--- a/ksysv/ksv_core.cpp
+++ b/ksysv/ksv_core.cpp
@@ -12,8 +12,8 @@
* *
***************************************************************************/
-#include <qpushbutton.h>
-#include <qstylesheet.h>
+#include <tqpushbutton.h>
+#include <tqstylesheet.h>
#include <kapplication.h>
#include <kglobalsettings.h>
@@ -29,7 +29,7 @@
const int ksv::runlevelNumber = 7;
KAboutData* ksv::about = 0L;
-bool ksv::getServiceDescription (const QString& path, QString& res)
+bool ksv::getServiceDescription (const TQString& path, TQString& res)
{
KSVService* tmp = KSVService::newService (path, KSVConfig::self()->runlevelPath());
res = i18n ("No description available.");
@@ -46,13 +46,13 @@ bool ksv::getServiceDescription (const QString& path, QString& res)
return result;
}
-QString ksv::breakWords (const QString& s, int amount)
+TQString ksv::breakWords (const TQString& s, int amount)
{
- QString res;
+ TQString res;
int left = s.length();
int maximum = amount;
- QString str = s;
+ TQString str = s;
while (left > maximum)
{
@@ -78,43 +78,43 @@ QString ksv::breakWords (const QString& s, int amount)
return res;
}
-const QString& ksv::copyrightSymbol ()
+const TQString& ksv::copyrightSymbol ()
{
- static QString c = QString::fromUtf8 ("©");
+ static TQString c = TQString::fromUtf8 ("©");
return c;
}
-QStyleSheet* ksv::styleSheet ()
+TQStyleSheet* ksv::styleSheet ()
{
- static QStyleSheet style;
+ static TQStyleSheet style;
static bool initialized = false;
if (!initialized)
{
- QStyleSheetItem* item = new QStyleSheetItem (&style, "vip"); // very important
+ TQStyleSheetItem* item = new TQStyleSheetItem (&style, "vip"); // very important
item->setLogicalFontSize (5);
- item->setFontWeight (QFont::Bold);
- item->setDisplayMode (QStyleSheetItem::DisplayBlock);
+ item->setFontWeight (TQFont::Bold);
+ item->setDisplayMode (TQStyleSheetItem::DisplayBlock);
- item = new QStyleSheetItem (&style, "rl"); // runlevel
+ item = new TQStyleSheetItem (&style, "rl"); // runlevel
item->setLogicalFontSize (4);
- item->setFontWeight (QFont::Bold);
-// item->setDisplayMode (QStyleSheetItem::DisplayBlock);
+ item->setFontWeight (TQFont::Bold);
+// item->setDisplayMode (TQStyleSheetItem::DisplayBlock);
- item = new QStyleSheetItem (&style, "start"); // start section
+ item = new TQStyleSheetItem (&style, "start"); // start section
item->setColor (Qt::green);
// item->setContexts ("rl");
- item = new QStyleSheetItem (&style, "stop"); // stop section
+ item = new TQStyleSheetItem (&style, "stop"); // stop section
item->setColor (Qt::red);
// item->setContexts ("rl");
- item = new QStyleSheetItem (&style, "error"); // signal an error
+ item = new TQStyleSheetItem (&style, "error"); // signal an error
item->setColor (Qt::red);
item->setLogicalFontSizeStep (1);
- item = new QStyleSheetItem (&style, "cmd"); // command line
+ item = new TQStyleSheetItem (&style, "cmd"); // command line
item->setFontFamily (KGlobalSettings::fixedFont().family());
}
@@ -137,7 +137,7 @@ KCompletion* ksv::numberCompletion ()
{
for (int value = 0; value < 100; value += 10)
{
- QString result = QString::number (value);
+ TQString result = TQString::number (value);
if (value < 10)
result.sprintf("%.2i", value);
@@ -149,32 +149,32 @@ KCompletion* ksv::numberCompletion ()
return &comp;
}
-const QString& ksv::logFileFilter ()
+const TQString& ksv::logFileFilter ()
{
- static QString filter = "*" + ksv::logFileExtension() + "|" +
- QString(kapp->caption() + i18n(" log files") + " (*" + ksv::logFileExtension() + ")");
+ static TQString filter = "*" + ksv::logFileExtension() + "|" +
+ TQString(kapp->caption() + i18n(" log files") + " (*" + ksv::logFileExtension() + ")");
return filter;
}
-const QString& ksv::nativeFileFilter ()
+const TQString& ksv::nativeFileFilter ()
{
- static QString filter = "*" + ksv::nativeFileExtension() + "|"
+ static TQString filter = "*" + ksv::nativeFileExtension() + "|"
+ i18n("Saved Init Configurations") + " (*" + ksv::nativeFileExtension() + ")";
return filter;
}
-const QString& ksv::logFileExtension ()
+const TQString& ksv::logFileExtension ()
{
- static QString ext = ".ksysv_log";
+ static TQString ext = ".ksysv_log";
return ext;
}
-const QString& ksv::nativeFileExtension ()
+const TQString& ksv::nativeFileExtension ()
{
- static QString ext = ".ksysv";
+ static TQString ext = ".ksysv";
return ext;
}