diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kreadconfig/kwriteconfig.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-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 'kreadconfig/kwriteconfig.cpp')
-rw-r--r-- | kreadconfig/kwriteconfig.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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; |