summaryrefslogtreecommitdiffstats
path: root/kcontrol/css/template.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/css/template.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/css/template.cpp')
-rw-r--r--kcontrol/css/template.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kcontrol/css/template.cpp b/kcontrol/css/template.cpp
index 94eba6053..e237ed796 100644
--- a/kcontrol/css/template.cpp
+++ b/kcontrol/css/template.cpp
@@ -1,24 +1,24 @@
-#include <qfile.h>
+#include <tqfile.h>
#include "template.h"
-bool CSSTemplate::expand(QString destname, const QMap<QString,QString> &dict)
+bool CSSTemplate::expand(TQString destname, const TQMap<TQString,TQString> &dict)
{
- QFile inf(_filename);
+ TQFile inf(_filename);
if (!inf.open(IO_ReadOnly))
return false;
- QTextStream is(&inf);
+ TQTextStream is(&inf);
- QFile outf(destname);
+ TQFile outf(destname);
if (!outf.open(IO_WriteOnly))
return false;
- QTextStream os(&outf);
+ TQTextStream os(&outf);
- QString line;
+ TQString line;
while (!is.eof())
{
line = is.readLine();
@@ -29,8 +29,8 @@ bool CSSTemplate::expand(QString destname, const QMap<QString,QString> &dict)
int end = line.find('$', start+1);
if (end >= 0)
{
- QString expr = line.mid(start+1, end-start-1);
- QString res = dict[expr];
+ TQString expr = line.mid(start+1, end-start-1);
+ TQString res = dict[expr];
line.replace(start, end-start+1, res);
}