summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/cupsdconf2/cupsdcomment.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/cupsdconf2/cupsdcomment.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/cupsdconf2/cupsdcomment.cpp')
-rw-r--r--kdeprint/cups/cupsdconf2/cupsdcomment.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeprint/cups/cupsdconf2/cupsdcomment.cpp b/kdeprint/cups/cupsdconf2/cupsdcomment.cpp
index d49a104a3..43847299b 100644
--- a/kdeprint/cups/cupsdconf2/cupsdcomment.cpp
+++ b/kdeprint/cups/cupsdconf2/cupsdcomment.cpp
@@ -19,37 +19,37 @@
#include "cupsdcomment.h"
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqregexp.h>
#include <klocale.h>
#include <kstandarddirs.h>
-QString Comment::comment()
+TQString Comment::comment()
{
- QString str = comment_;
- str.replace(QRegExp("<[^>]*>"), "");
+ TQString str = comment_;
+ str.replace(TQRegExp("<[^>]*>"), "");
str += ("#\n" + example_);
return str;
}
-QString Comment::toolTip()
+TQString Comment::toolTip()
{
- QString str = comment_;
- str.replace(QRegExp("^#[\\s]*"), "").replace(QRegExp("\n#[\\s]*"), "\n");
+ TQString str = comment_;
+ str.replace(TQRegExp("^#[\\s]*"), "").replace(TQRegExp("\n#[\\s]*"), "\n");
return i18n("Do not translate the keyword between brackets (e.g. ServerName, ServerAdmin, etc.)", str.utf8());
}
-QString Comment::key()
+TQString Comment::key()
{
return key_;
}
-bool Comment::load(QFile *f)
+bool Comment::load(TQFile *f)
{
comment_ = "";
example_ = "";
key_ = "";
- QString line, *current = &comment_;
+ TQString line, *current = &comment_;
while (!f->atEnd())
{
f->readLine(line, 1024);
@@ -83,12 +83,12 @@ bool Comment::load(QFile *f)
//------------------------------------------------------------------------------------------------------------
-QString CupsdComment::operator[] (const QString& key)
+TQString CupsdComment::operator[] (const TQString& key)
{
return comment(key);
}
-QString CupsdComment::comment(const QString& key)
+TQString CupsdComment::comment(const TQString& key)
{
if (comments_.count() != 0 || loadComments())
{
@@ -96,10 +96,10 @@ QString CupsdComment::comment(const QString& key)
if (comm)
return comm->comment();
}
- return QString::null;
+ return TQString::null;
}
-QString CupsdComment::toolTip(const QString& key)
+TQString CupsdComment::toolTip(const TQString& key)
{
if (comments_.count() != 0 || loadComments())
{
@@ -107,7 +107,7 @@ QString CupsdComment::toolTip(const QString& key)
if (comm)
return comm->toolTip();
}
- return QString::null;
+ return TQString::null;
}
bool CupsdComment::loadComments()