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/structtreeview.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'quanta/treeviews/structtreeview.h') diff --git a/quanta/treeviews/structtreeview.h b/quanta/treeviews/structtreeview.h index 45150579..09a95a07 100644 --- a/quanta/treeviews/structtreeview.h +++ b/quanta/treeviews/structtreeview.h @@ -40,6 +40,7 @@ struct DTDStruct; class StructTreeView : public KListView { Q_OBJECT + TQ_OBJECT public: /** @@ -48,10 +49,10 @@ public: * the parameters are only used at the first call to create the class * */ - static StructTreeView* const ref(TQWidget *parent = 0L, const char *name = 0L) + static StructTreeView* const ref(TQWidget *tqparent = 0L, const char *name = 0L) { static StructTreeView *m_ref; - if (!m_ref) m_ref = new StructTreeView (parent, name); + if (!m_ref) m_ref = new StructTreeView (tqparent, name); return m_ref; } @@ -71,7 +72,7 @@ public: bool useOpenLevelSetting; public slots: // Public slots - /** repaint document structure */ + /** tqrepaint document structure */ void slotReparse(Document *w, Node* node, int openLevel = 3,bool groupOnly=false); void slotMouseClicked(int button, TQListViewItem*, const TQPoint&, int); void slotDoubleClicked( TQListViewItem * ); @@ -112,7 +113,7 @@ private: * If you need the class use StructTreeView::ref() for * construction and reference */ - StructTreeView(TQWidget *parent=0, const char *name=0); + StructTreeView(TQWidget *tqparent=0, const char *name=0); /** builds the structure tree */ void buildTree(Node *baseNode, int openLevel, bool groupOnly); /** Do the recursive opening or closing of the trees */ @@ -121,8 +122,8 @@ private: /** Make ctrl have the same behavior has shift */ void setContiguousSelectedItems(); - void copySelectedItems(TQListViewItem* parent, TQListViewItem* after); - void moveSelectedItems(TQListViewItem* parent, TQListViewItem* after); + void copySelectedItems(TQListViewItem* tqparent, TQListViewItem* after); + void moveSelectedItems(TQListViewItem* tqparent, TQListViewItem* after); private: @@ -166,7 +167,7 @@ protected slots: // Protected slots void slotDTDChanged(int id); void slotMouseClickedVPL(int button, TQListViewItem*, const TQPoint&, int); - virtual void slotDropped(TQDropEvent* e, TQListViewItem* parent, TQListViewItem* after); + virtual void slotDropped(TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after); protected: // Protected attributes Document *write; -- cgit v1.2.1