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 /kioslave/system/kdedmodule | |
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 'kioslave/system/kdedmodule')
-rw-r--r-- | kioslave/system/kdedmodule/systemdirnotify.cpp | 28 | ||||
-rw-r--r-- | kioslave/system/kdedmodule/systemdirnotify.h | 4 | ||||
-rw-r--r-- | kioslave/system/kdedmodule/systemdirnotifymodule.cpp | 4 | ||||
-rw-r--r-- | kioslave/system/kdedmodule/systemdirnotifymodule.h | 2 |
4 files changed, 19 insertions, 19 deletions
diff --git a/kioslave/system/kdedmodule/systemdirnotify.cpp b/kioslave/system/kdedmodule/systemdirnotify.cpp index e0ec57992..162d96621 100644 --- a/kioslave/system/kdedmodule/systemdirnotify.cpp +++ b/kioslave/system/kdedmodule/systemdirnotify.cpp @@ -26,7 +26,7 @@ #include <kdirnotify_stub.h> -#include <qdir.h> +#include <tqdir.h> SystemDirNotify::SystemDirNotify() : mInited( false ) @@ -41,21 +41,21 @@ void SystemDirNotify::init() KGlobal::dirs()->addResourceType("system_entries", KStandardDirs::kde_default("data") + "systemview"); - QStringList names_found; - QStringList dirList = KGlobal::dirs()->resourceDirs("system_entries"); + TQStringList names_found; + TQStringList dirList = KGlobal::dirs()->resourceDirs("system_entries"); - QStringList::ConstIterator dirpath = dirList.begin(); - QStringList::ConstIterator end = dirList.end(); + TQStringList::ConstIterator dirpath = dirList.begin(); + TQStringList::ConstIterator end = dirList.end(); for(; dirpath!=end; ++dirpath) { - QDir dir = *dirpath; + TQDir dir = *dirpath; if (!dir.exists()) continue; - QStringList filenames - = dir.entryList( QDir::Files | QDir::Readable ); + TQStringList filenames + = dir.entryList( TQDir::Files | TQDir::Readable ); - QStringList::ConstIterator name = filenames.begin(); - QStringList::ConstIterator endf = filenames.end(); + TQStringList::ConstIterator name = filenames.begin(); + TQStringList::ConstIterator endf = filenames.end(); for(; name!=endf; ++name) { @@ -63,7 +63,7 @@ void SystemDirNotify::init() { KDesktopFile desktop(*dirpath+*name, true); - QString system_name = *name; + TQString system_name = *name; system_name.truncate(system_name.length()-8); KURL system_url("system:/"+system_name); @@ -90,8 +90,8 @@ KURL SystemDirNotify::toSystemURL(const KURL &url) kdDebug() << "SystemDirNotify::toSystemURL(" << url << ")" << endl; init(); - QMap<KURL,KURL>::const_iterator it = m_urlMap.begin(); - QMap<KURL,KURL>::const_iterator end = m_urlMap.end(); + TQMap<KURL,KURL>::const_iterator it = m_urlMap.begin(); + TQMap<KURL,KURL>::const_iterator end = m_urlMap.end(); for (; it!=end; ++it) { @@ -99,7 +99,7 @@ KURL SystemDirNotify::toSystemURL(const KURL &url) if ( base.isParentOf(url) ) { - QString path = KURL::relativePath(base.path(), + TQString path = KURL::relativePath(base.path(), url.path()); KURL result = it.data(); result.addPath(path); diff --git a/kioslave/system/kdedmodule/systemdirnotify.h b/kioslave/system/kdedmodule/systemdirnotify.h index 34da65b82..b743ddb42 100644 --- a/kioslave/system/kdedmodule/systemdirnotify.h +++ b/kioslave/system/kdedmodule/systemdirnotify.h @@ -21,7 +21,7 @@ #include <kurl.h> #include <kdirnotify.h> -#include <qmap.h> +#include <tqmap.h> class SystemDirNotify : public KDirNotify { @@ -40,7 +40,7 @@ private: KURL toSystemURL(const KURL &url); KURL::List toSystemURLList(const KURL::List &list); - QMap<KURL,KURL> m_urlMap; + TQMap<KURL,KURL> m_urlMap; bool mInited; }; diff --git a/kioslave/system/kdedmodule/systemdirnotifymodule.cpp b/kioslave/system/kdedmodule/systemdirnotifymodule.cpp index 36c46fcd0..b89daf129 100644 --- a/kioslave/system/kdedmodule/systemdirnotifymodule.cpp +++ b/kioslave/system/kdedmodule/systemdirnotifymodule.cpp @@ -22,13 +22,13 @@ #include <klocale.h> #include <kglobal.h> -SystemDirNotifyModule::SystemDirNotifyModule(const QCString &obj) +SystemDirNotifyModule::SystemDirNotifyModule(const TQCString &obj) : KDEDModule(obj) { } extern "C" { - KDE_EXPORT KDEDModule *create_systemdirnotify(const QCString &obj) + KDE_EXPORT KDEDModule *create_systemdirnotify(const TQCString &obj) { KGlobal::locale()->insertCatalogue("kio_system"); return new SystemDirNotifyModule(obj); diff --git a/kioslave/system/kdedmodule/systemdirnotifymodule.h b/kioslave/system/kdedmodule/systemdirnotifymodule.h index c75cd1a9e..e979ba098 100644 --- a/kioslave/system/kdedmodule/systemdirnotifymodule.h +++ b/kioslave/system/kdedmodule/systemdirnotifymodule.h @@ -28,7 +28,7 @@ class SystemDirNotifyModule : public KDEDModule K_DCOP public: - SystemDirNotifyModule(const QCString &obj); + SystemDirNotifyModule(const TQCString &obj); private: SystemDirNotify notifier; }; |