From 5ad8fdbf162cf819cf1c48d2ddd8aed9113ab718 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 30 May 2011 18:02:11 +0000 Subject: TQt4 convert kde-systemsettings This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-systemsettings@1234247 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- systemsettings/kcmodulemenu.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'systemsettings/kcmodulemenu.h') diff --git a/systemsettings/kcmodulemenu.h b/systemsettings/kcmodulemenu.h index 2cfce7b..193aada 100644 --- a/systemsettings/kcmodulemenu.h +++ b/systemsettings/kcmodulemenu.h @@ -64,7 +64,7 @@ class KCModuleMenuPrivate; * X-KDE-BaseGroup=examplemenu * \endcode * - * example.menu should be installed in xdg/menus/ so that ksyscoco will find + * example.menu should be installed in xdg/menus/ so that ksyscoco will tqfind * it. See the above url for example menus. After changing the menu you need * to run "kbuildsycoca" to regenerate the cache as ksyscoco will cache the * menu and is a file that doesn't change on users. @@ -77,17 +77,17 @@ class MenuItem { public: MenuItem( bool isMenu=false ){ menu = isMenu; }; bool menu; - QString subMenu; - QString caption; + TQString subMenu; + TQString caption; KCModuleInfo item; }; -class KCModuleMenu : public QValueList +class KCModuleMenu : public TQValueList { public: - QString caption; + TQString caption; /** * @param the X-KDE-BaseGroup item from the directory file @@ -98,7 +98,7 @@ public: * X-KDE-BaseGroup=examplemenu * so menuName should be "systemsettings" */ - KCModuleMenu( const QString &menuName ); + KCModuleMenu( const TQString &menuName ); /** * Deconstructor @@ -111,21 +111,21 @@ public: * @param path to return submenus from. * @return all items in menuPath. */ - QValueList menuList( const QString &menuPath=QString::null ); + TQValueList menuList( const TQString &menuPath=TQString() ); /** * Returns the modules in a menu path. An empty string is the top level. * @param menu to return modules from. * @returns only the top level modules of menuPath */ - QValueList modules( const QString &menuPath=QString::null ); + TQValueList modules( const TQString &menuPath=TQString() ); /** * Returns the sub menus of a menu path. An empty string is the top level. * @param path to return submenus from. * @return only the submenus of menuPath. */ - QStringList submenus( const QString &menuPath=QString::null ); + TQStringList submenus( const TQString &menuPath=TQString() ); protected: @@ -135,7 +135,7 @@ protected: * This is the from the merge.menu file * @param pathName the base path name of the menu. */ - virtual void readMenu( const QString &pathName ); + virtual void readMenu( const TQString &pathName ); /** * Function that determines if the entry from readMenu @@ -151,7 +151,7 @@ protected: private: KCModuleMenuPrivate *d; - QString deriveCaptionFromPath( const QString &menuPath ); + TQString deriveCaptionFromPath( const TQString &menuPath ); }; #endif // KCMMODULEMENU_H -- cgit v1.2.1