summaryrefslogtreecommitdiffstats
path: root/kreadconfig
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 /kreadconfig
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 'kreadconfig')
-rw-r--r--kreadconfig/kreadconfig.cpp10
-rw-r--r--kreadconfig/kwriteconfig.cpp16
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;