diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/documentation/interfaces/kdevdocumentationplugin.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/documentation/interfaces/kdevdocumentationplugin.h')
-rw-r--r-- | parts/documentation/interfaces/kdevdocumentationplugin.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h index 0c1dcf0d..fc7af7e3 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.h +++ b/parts/documentation/interfaces/kdevdocumentationplugin.h @@ -43,10 +43,10 @@ public: Document /**<Document.*/ }; - DocumentationItem(Type type, KListView *parent, const TQString &name); - DocumentationItem(Type type, KListView *parent, KListViewItem *after, const TQString &name); - DocumentationItem(Type type, KListViewItem *parent, const TQString &name); - DocumentationItem(Type type, KListViewItem *parent, KListViewItem *after, const TQString &name); + DocumentationItem(Type type, KListView *tqparent, const TQString &name); + DocumentationItem(Type type, KListView *tqparent, KListViewItem *after, const TQString &name); + DocumentationItem(Type type, KListViewItem *tqparent, const TQString &name); + DocumentationItem(Type type, KListViewItem *tqparent, KListViewItem *after, const TQString &name); virtual void setURL(const KURL &url) { m_url = url; } virtual KURL url() const { return m_url; } @@ -72,8 +72,8 @@ class DocumentationPlugin; class DocumentationCatalogItem: public DocumentationItem { public: - DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *parent, const TQString &name); - DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const TQString &name); + DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *tqparent, const TQString &name); + DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *tqparent, const TQString &name); virtual ~DocumentationCatalogItem(); DocumentationPlugin* plugin() const { return m_plugin; } @@ -122,7 +122,7 @@ private: /**Documentation index item.*/ class IndexItem: public TQListBoxText { public: - typedef QPair<TQString, KURL> URL; + typedef TQPair<TQString, KURL> URL; typedef TQValueList<URL> List; IndexItem(IndexBox *listbox, const TQString &text); @@ -136,7 +136,7 @@ private: /**Documentation index view.*/ class IndexBox: public KListBox{ public: - IndexBox(TQWidget *parent = 0, const char *name = 0); + IndexBox(TQWidget *tqparent = 0, const char *name = 0); virtual void addIndexItem(IndexItemProto *item); virtual void removeIndexItem(IndexItemProto *item); @@ -158,10 +158,10 @@ class TQFontMetrics; class DocumentationPlugin; /**Documentation configuration item.*/ -class ConfigurationItem: public QCheckListItem +class ConfigurationItem: public TQCheckListItem { public: - ConfigurationItem(TQListView *parent, DocumentationPlugin * plugin, const TQString &title, const TQString &url, + ConfigurationItem(TQListView *tqparent, DocumentationPlugin * plugin, const TQString &title, const TQString &url, bool indexPossible, bool fullTextSearchPossible); virtual TQString title() const { return m_title; } @@ -214,9 +214,10 @@ methods to load documentation catalogs and indexes for a documentation of that type. It also has methods to configure catalogs and provides a list of URL's for the full text search tool. */ -class DocumentationPlugin: public QObject +class DocumentationPlugin: public TQObject { Q_OBJECT + TQ_OBJECT public: /**Capability of documentation plugin.*/ enum Capability { Index=1 /**<index can be built for catalogs*/, @@ -233,7 +234,7 @@ public: setCapabilities(Index | FullTextSearch); @endcode */ - DocumentationPlugin(KConfig *pluginConfig, TQObject *parent =0, const char *name =0); + DocumentationPlugin(KConfig *pluginConfig, TQObject *tqparent =0, const char *name =0); virtual ~DocumentationPlugin(); /**Returns the i18n name of the plugin.*/ @@ -310,7 +311,7 @@ public: virtual void deleteCatalogConfiguration(const ConfigurationItem *const configurationItem); /**Returns a mode and a filter for catalog locator dialogs.*/ - virtual QPair<KFile::Mode, TQString> catalogLocatorProps() = 0; + virtual TQPair<KFile::Mode, TQString> catalogLocatorProps() = 0; /**Returns a title of catalog defined by an url parameter.*/ virtual TQString catalogTitle(const TQString &url) = 0; @@ -389,6 +390,7 @@ Represents functionality to display project documentation catalog and index in d */ class ProjectDocumentationPlugin: public TQObject { Q_OBJECT + TQ_OBJECT public: ProjectDocumentationPlugin(DocumentationPlugin *docPlugin, DocumentationPlugin::ProjectDocType type); virtual ~ProjectDocumentationPlugin(); |