From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kicker/menuext/remote/remotemenu.cpp | 38 ++++++++++++++++++------------------ kicker/menuext/remote/remotemenu.h | 8 ++++---- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'kicker/menuext/remote') diff --git a/kicker/menuext/remote/remotemenu.cpp b/kicker/menuext/remote/remotemenu.cpp index 42b3d5339..c09f9a825 100644 --- a/kicker/menuext/remote/remotemenu.cpp +++ b/kicker/menuext/remote/remotemenu.cpp @@ -27,9 +27,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include "kickerSettings.h" @@ -38,16 +38,16 @@ K_EXPORT_KICKER_MENUEXT(remotemenu, RemoteMenu) -RemoteMenu::RemoteMenu(QWidget *parent, const char *name, - const QStringList &/*args*/) +RemoteMenu::RemoteMenu(TQWidget *parent, const char *name, + const TQStringList &/*args*/) : KPanelMenu(parent, name), KDirNotify() { KGlobal::dirs()->addResourceType("remote_entries", KStandardDirs::kde_default("data") + "remoteview"); - QString path = KGlobal::dirs()->saveLocation("remote_entries"); + TQString path = KGlobal::dirs()->saveLocation("remote_entries"); - QDir dir = path; + TQDir dir = path; if (!dir.exists()) { dir.cdUp(); @@ -68,35 +68,35 @@ void RemoteMenu::initialize() } id = insertItem(SmallIcon("wizard"), i18n("Add Network Folder")); - connectItem(id, this, SLOT(startWizard())); + connectItem(id, this, TQT_SLOT(startWizard())); id = insertItem(SmallIcon("kfm"), i18n("Manage Network Folders")); - connectItem(id, this, SLOT(openRemoteDir())); + connectItem(id, this, TQT_SLOT(openRemoteDir())); insertSeparator(); m_desktopMap.clear(); - QStringList names_found; - QStringList dirList = KGlobal::dirs()->resourceDirs("remote_entries"); + TQStringList names_found; + TQStringList dirList = KGlobal::dirs()->resourceDirs("remote_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) { if (!names_found.contains(*name)) { names_found.append(*name); - QString filename = *dirpath+*name; + TQString filename = *dirpath+*name; KDesktopFile desktop(filename); id = insertItem(SmallIcon(desktop.readIcon()), desktop.readName()); m_desktopMap[id] = filename; diff --git a/kicker/menuext/remote/remotemenu.h b/kicker/menuext/remote/remotemenu.h index 1e46bb4e3..607e1fc64 100644 --- a/kicker/menuext/remote/remotemenu.h +++ b/kicker/menuext/remote/remotemenu.h @@ -22,7 +22,7 @@ #include #include -#include +#include class RemoteMenu : public KPanelMenu, public KDirNotify { @@ -30,8 +30,8 @@ class RemoteMenu : public KPanelMenu, public KDirNotify K_DCOP public: - RemoteMenu(QWidget *parent, const char *name, - const QStringList & /*args*/); + RemoteMenu(TQWidget *parent, const char *name, + const TQStringList & /*args*/); ~RemoteMenu(); k_dcop: @@ -47,7 +47,7 @@ class RemoteMenu : public KPanelMenu, public KDirNotify void slotExec(int id); private: - QMap m_desktopMap; + TQMap m_desktopMap; }; #endif -- cgit v1.2.1