From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/treeviews/templatestreeview.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'quanta/treeviews/templatestreeview.h') diff --git a/quanta/treeviews/templatestreeview.h b/quanta/treeviews/templatestreeview.h index 7816cffd..efccc56a 100644 --- a/quanta/treeviews/templatestreeview.h +++ b/quanta/treeviews/templatestreeview.h @@ -27,18 +27,19 @@ class KMainWindow; class TemplatesTreeBranch : public BaseTreeBranch { public: - TemplatesTreeBranch(KFileTreeView *parent, const KURL& url, + TemplatesTreeBranch(KFileTreeView *tqparent, const KURL& url, const TQString& name, const TQPixmap& pix, bool showHidden = false, KFileTreeViewItem *branchRoot = 0L); /** read the mimetype */ - virtual KFileTreeViewItem* createTreeViewItem(KFileTreeViewItem *parent, + virtual KFileTreeViewItem* createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem ); }; class TemplatesTreeView : public BaseTreeView { Q_OBJECT + TQ_OBJECT public: @@ -48,18 +49,18 @@ public: * the parameter are only used at the first call to create the class * */ - static TemplatesTreeView* const ref(KMainWindow *parent = 0L, const char *name = 0L) + static TemplatesTreeView* const ref(KMainWindow *tqparent = 0L, const char *name = 0L) { static TemplatesTreeView *m_ref; - if (!m_ref) m_ref = new TemplatesTreeView (parent, name); + if (!m_ref) m_ref = new TemplatesTreeView (tqparent, name); return m_ref; } ~TemplatesTreeView(); /** Writes a .dirinfo file from the selected item's path */ - bool writeDirInfo(const TQString& dirInfoFile = TQString::null); + bool writeDirInfo(const TQString& dirInfoFile = TQString()); /** Reads a .dirinfo file from the selected item's path */ - DirInfo readDirInfo(const TQString& dir = TQString::null); + DirInfo readDirInfo(const TQString& dir = TQString()); public slots: @@ -118,7 +119,7 @@ private: * If you need the class use TemplatesTreeView::ref() for * construction and reference */ - TemplatesTreeView(KMainWindow *parent, const char *name = 0L); + TemplatesTreeView(KMainWindow *tqparent, const char *name = 0L); /** Filters the template through and action, and returns the modified/filtered template file */ KURL filterTemplate(); -- cgit v1.2.1