summaryrefslogtreecommitdiffstats
path: root/kstyles/utils/installtheme
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kstyles/utils/installtheme
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstyles/utils/installtheme')
-rw-r--r--kstyles/utils/installtheme/main.cpp30
1 files changed, 15 insertions, 15 deletions
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 <qfileinfo.h>
-#include <qmap.h>
-#include <qstringlist.h>
-#include <qsettings.h>
+#include <tqfileinfo.h>
+#include <tqmap.h>
+#include <tqstringlist.h>
+#include <tqsettings.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
@@ -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 <QString, QString> themes; //Name->file mapping..
+ TQMap <TQString, TQString> 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<QString, QString>::Iterator i = themes.begin(); i!=themes.end(); ++i)
+ for (TQMap<TQString, TQString>::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());
}