From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kstyles/utils/installtheme/main.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kstyles/utils') diff --git a/kstyles/utils/installtheme/main.cpp b/kstyles/utils/installtheme/main.cpp index 0569c74ef..5ddf8cd56 100644 --- a/kstyles/utils/installtheme/main.cpp +++ b/kstyles/utils/installtheme/main.cpp @@ -20,10 +20,10 @@ DEALINGS IN THE SOFTWARE. */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -40,16 +40,16 @@ int main(int argc, char **argv) KCmdLineArgs::init(argc, argv, "kinstalltheme", I18N_NOOP("KInstalltheme"), desc, ver); KApplication qapp(false, false); //We don't allow styles.. Kind of ironic, isn't it? - KGlobal::dirs()->addResourceType("themercs", KGlobal::dirs()->kde_default("data")+QString("kstyle/themes")); - QStringList themercs = KGlobal::dirs()->findAllResources("themercs","*.themerc"); + KGlobal::dirs()->addResourceType("themercs", KGlobal::dirs()->kde_default("data")+TQString("kstyle/themes")); + TQStringList themercs = KGlobal::dirs()->findAllResources("themercs","*.themerc"); - QMap themes; //Name->file mapping.. + TQMap themes; //Name->file mapping.. - for (QStringList::iterator i = themercs.begin(); i!=themercs.end(); ++i) + for (TQStringList::iterator i = themercs.begin(); i!=themercs.end(); ++i) { - QString file=*i; + TQString file=*i; KSimpleConfig config(file, true); - QString name = QFileInfo(file).baseName(); //This is nice and static... + TQString name = TQFileInfo(file).baseName(); //This is nice and static... //So we don't have to worry about our key changing when the language does. config.setGroup( "KDE" ); @@ -66,20 +66,20 @@ int main(int argc, char **argv) #if 0 //Doesn't seem to work with present Qt.. - QStringList existing = cache.subkeyList("/kthemestyle"); - for (QStringList::iterator i = existing.begin(); i != existing.end(); i++) + TQStringList existing = cache.subkeyList("/kthemestyle"); + for (TQStringList::iterator i = existing.begin(); i != existing.end(); i++) { cout<<"Have:"<<(*i).latin1()<<"\n"; cache.removeEntry("/ktmthestyle"+(*i)); } #endif - QStringList themeNames; //A list of names, each occurring once - the keys of the themes map.. + TQStringList themeNames; //A list of names, each occurring once - the keys of the themes map.. - for (QMap::Iterator i = themes.begin(); i!=themes.end(); ++i) + for (TQMap::Iterator i = themes.begin(); i!=themes.end(); ++i) { cache.setGroup(i.key().lower()); - cache.writePathEntry("file",QFileInfo(i.data()).fileName()); + cache.writePathEntry("file",TQFileInfo(i.data()).fileName()); themeNames.push_back(i.key()); } -- cgit v1.2.1