From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: 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 --- kreadconfig/kwriteconfig.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kreadconfig') 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 + * (c) 2001 Red Hat, Inc. & Lu�s Pedro Coelho + * Programmed by Lu�s Pedro Coelho * based on kreadconfig by Bernhard Rosenkraenzer * * 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, "luis_pedro@netcabo.pt"); + "(c) 2001 Red Hat, Inc. & Lu�s Pedro Coelho"); + aboutData.addAuthor("Lu�s Pedro Coelho", 0, "luis_pedro@netcabo.pt"); aboutData.addAuthor("Bernhard Rosenkraenzer", "Wrote kreadconfig on which this is based", "bero@redhat.com"); 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; -- cgit v1.2.3