summaryrefslogtreecommitdiffstats
path: root/kreadconfig
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kreadconfig
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kreadconfig')
-rw-r--r--kreadconfig/kwriteconfig.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kreadconfig/kwriteconfig.cpp b/kreadconfig/kwriteconfig.cpp
index 83d1afe23..5462eae5a 100644
--- a/kreadconfig/kwriteconfig.cpp
+++ b/kreadconfig/kwriteconfig.cpp
@@ -1,6 +1,6 @@
/* Write KConfig() entries - for use in shell scripts.
- * (c) 2001 Red Hat, Inc. & Lu�s Pedro Coelho
- * Programmed by Lu�s Pedro Coelho <[email protected]>
+ * (c) 2001 Red Hat, Inc. & Lu�s Pedro Coelho
+ * Programmed by Lu�s Pedro Coelho <[email protected]>
* based on kreadconfig by Bernhard Rosenkraenzer <[email protected]>
*
* License: GPL
@@ -29,8 +29,8 @@ int main(int argc, char **argv)
"1.0.0",
I18N_NOOP("Write KConfig entries - for use in shell scripts"),
KAboutData::License_GPL,
- "(c) 2001 Red Hat, Inc. & Lu�s Pedro Coelho");
- aboutData.addAuthor("Lu�s Pedro Coelho", 0, "[email protected]");
+ "(c) 2001 Red Hat, Inc. & Lu�s Pedro Coelho");
+ aboutData.addAuthor("Lu�s Pedro Coelho", 0, "[email protected]");
aboutData.addAuthor("Bernhard Rosenkraenzer", "Wrote kreadconfig on which this is based", "[email protected]");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
@@ -52,7 +52,7 @@ int main(int argc, char **argv)
KConfig *konfig;
if (file.isEmpty())
- konfig = new KConfig(TQString::fromLatin1("kdeglobals"), false, false);
+ konfig = new KConfig(TQString::tqfromLatin1("kdeglobals"), false, false);
else
konfig = new KConfig(file, false, false);
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
} else if (type=="path") {
konfig->writePathEntry( key, TQString::fromLocal8Bit( value ) );
} else {
- konfig->writeEntry( key, TQString::fromLocal8Bit( value ) );
+ konfig->writeEntry( key, TQString(TQString::fromLocal8Bit( value )) );
}
konfig->sync();
delete konfig;