diff options
Diffstat (limited to 'kreadconfig')
-rw-r--r-- | kreadconfig/kreadconfig.cpp | 10 | ||||
-rw-r--r-- | kreadconfig/kwriteconfig.cpp | 16 |
2 files changed, 13 insertions, 13 deletions
diff --git a/kreadconfig/kreadconfig.cpp b/kreadconfig/kreadconfig.cpp index 8ad4d79f1..709d7b781 100644 --- a/kreadconfig/kreadconfig.cpp +++ b/kreadconfig/kreadconfig.cpp @@ -53,11 +53,11 @@ int main(int argc, char **argv) KCmdLineArgs::addCmdLineOptions(options); KCmdLineArgs *args=KCmdLineArgs::parsedArgs(); - QString group=QString::fromLocal8Bit(args->getOption("group")); - QString key=QString::fromLocal8Bit(args->getOption("key")); - QString file=QString::fromLocal8Bit(args->getOption("file")); - QCString dflt=args->getOption("default"); - QCString type=args->getOption("type").lower(); + TQString group=TQString::fromLocal8Bit(args->getOption("group")); + TQString key=TQString::fromLocal8Bit(args->getOption("key")); + TQString file=TQString::fromLocal8Bit(args->getOption("file")); + TQCString dflt=args->getOption("default"); + TQCString type=args->getOption("type").lower(); if (key.isNull()) { KCmdLineArgs::usage(); diff --git a/kreadconfig/kwriteconfig.cpp b/kreadconfig/kwriteconfig.cpp index 0246ec709..83d1afe23 100644 --- a/kreadconfig/kwriteconfig.cpp +++ b/kreadconfig/kwriteconfig.cpp @@ -36,23 +36,23 @@ int main(int argc, char **argv) KCmdLineArgs::addCmdLineOptions(options); KCmdLineArgs *args=KCmdLineArgs::parsedArgs(); - QString group=QString::fromLocal8Bit(args->getOption("group")); - QString key=QString::fromLocal8Bit(args->getOption("key")); - QString file=QString::fromLocal8Bit(args->getOption("file")); - QCString type=args->getOption("type").lower(); + TQString group=TQString::fromLocal8Bit(args->getOption("group")); + TQString key=TQString::fromLocal8Bit(args->getOption("key")); + TQString file=TQString::fromLocal8Bit(args->getOption("file")); + TQCString type=args->getOption("type").lower(); if (key.isNull() || !args->count()) { KCmdLineArgs::usage(); return 1; } - QCString value = args->arg( 0 ); + TQCString value = args->arg( 0 ); KInstance inst(&aboutData); KConfig *konfig; if (file.isEmpty()) - konfig = new KConfig(QString::fromLatin1("kdeglobals"), false, false); + konfig = new KConfig(TQString::fromLatin1("kdeglobals"), false, false); else konfig = new KConfig(file, false, false); @@ -64,9 +64,9 @@ int main(int argc, char **argv) bool boolvalue=(value=="true" || value=="on" || value=="yes" || value=="1"); konfig->writeEntry( key, boolvalue ); } else if (type=="path") { - konfig->writePathEntry( key, QString::fromLocal8Bit( value ) ); + konfig->writePathEntry( key, TQString::fromLocal8Bit( value ) ); } else { - konfig->writeEntry( key, QString::fromLocal8Bit( value ) ); + konfig->writeEntry( key, TQString::fromLocal8Bit( value ) ); } konfig->sync(); delete konfig; |