diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
commit | 421b60af92c83b889f8903c2898f2bd07186fcd8 (patch) | |
tree | ad873a24c9438baed4942fda795430a4c3dc9a9a /kbfxlib/common/kbfxthemesdata.cpp | |
parent | 39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff) | |
download | kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip |
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbfxlib/common/kbfxthemesdata.cpp')
-rw-r--r-- | kbfxlib/common/kbfxthemesdata.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kbfxlib/common/kbfxthemesdata.cpp b/kbfxlib/common/kbfxthemesdata.cpp index 2ebaa10..464f285 100644 --- a/kbfxlib/common/kbfxthemesdata.cpp +++ b/kbfxlib/common/kbfxthemesdata.cpp @@ -29,18 +29,18 @@ KbfxThemesData::~KbfxThemesData() m_themesMap.clear(); } -ThemesMap KbfxThemesData::setThemeList ( QString path ) +ThemesMap KbfxThemesData::setThemeList ( TQString path ) { - QString m_KbfxThemesVersion = ConfigInit().m_KbfxThemesVersion; + TQString m_KbfxThemesVersion = ConfigInit().m_KbfxThemesVersion; bool m_KbfxShowOldThemes = ConfigInit().m_KbfxShowOldThemes; - QFileInfo *fi=0, *f=0; + TQFileInfo *fi=0, *f=0; m_themesMap.clear(); KStandardDirs *tmp = new KStandardDirs(); /* search themes in KDE Resource Folders and append user selected folder */ - QStringList skinsFolders = tmp->findDirs ( "data", "kbfx/skins" ); + TQStringList skinsFolders = tmp->findDirs ( "data", "kbfx/skins" ); if ( tmp->exists ( path ) ) { skinsFolders.append ( path ); @@ -50,19 +50,19 @@ ThemesMap KbfxThemesData::setThemeList ( QString path ) kdDebug() << "KbfxThemesData: Path doesn't exist! :" << path << endl; } - for ( QStringList::Iterator skinsIt = skinsFolders.begin(); skinsIt != skinsFolders.end(); ++skinsIt ) + for ( TQStringList::Iterator skinsIt = skinsFolders.begin(); skinsIt != skinsFolders.end(); ++skinsIt ) { - QDir d ( *skinsIt ); - d.setFilter ( QDir::Dirs ); + TQDir d ( *skinsIt ); + d.setFilter ( TQDir::Dirs ); - const QFileInfoList *list = d.entryInfoList(); - QFileInfoListIterator it ( *list ); + const TQFileInfoList *list = d.entryInfoList(); + TQFileInfoListIterator it ( *list ); while ( ( fi = it.current() ) != 0 ) { if ( !fi->fileName().startsWith ( "." ) ) { - f = new QFileInfo ( d, fi->fileName() + "/" + m_KbfxThemesVersion ); + f = new TQFileInfo ( d, fi->fileName() + "/" + m_KbfxThemesVersion ); if ( m_KbfxShowOldThemes ) { m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" ); |