diff options
Diffstat (limited to 'kommander/editor/hierarchyview.h')
-rw-r--r-- | kommander/editor/hierarchyview.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/kommander/editor/hierarchyview.h b/kommander/editor/hierarchyview.h index 8e833962..f3f1fc91 100644 --- a/kommander/editor/hierarchyview.h +++ b/kommander/editor/hierarchyview.h @@ -1,7 +1,7 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** -** This file is part of Qt Designer. +** This file is part of TQt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -25,7 +25,7 @@ #include <tqlistview.h> #include <tqtabwidget.h> #include <tqguardedptr.h> -#include <private/qcom_p.h> +#include <private/tqcom_p.h> class FormWindow; class TQCloseEvent; @@ -35,7 +35,7 @@ class TQMouseEvent; class TQWizard; class TQToolBox; -class HierarchyItem:public QListViewItem +class HierarchyItem:public TQListViewItem { public: enum Type @@ -52,9 +52,9 @@ public: EventFunction }; - HierarchyItem(Type type, TQListViewItem * parent, + HierarchyItem(Type type, TQListViewItem * tqparent, const TQString & txt1, const TQString & txt2, const TQString & txt3); - HierarchyItem(Type type, TQListView * parent, + HierarchyItem(Type type, TQListView * tqparent, const TQString & txt1, const TQString & txt2, const TQString & txt3); void paintCell(TQPainter * p, const TQColorGroup & cg, int column, int width, int align); @@ -77,11 +77,12 @@ private: Type typ; }; -class HierarchyList:public QListView +class HierarchyList:public TQListView { - Q_OBJECT + Q_OBJECT + TQ_OBJECT public: - HierarchyList(TQWidget * parent, FormWindow * fw, bool doConnects = TRUE); + HierarchyList(TQWidget * tqparent, FormWindow * fw, bool doConnects = TRUE); virtual void setup(); virtual void setCurrent(TQWidget * w); @@ -93,7 +94,7 @@ public: { setUpdatesEnabled(FALSE); triggerUpdate(); setUpdatesEnabled(TRUE); TQListView::drawContentsOffset(p, ox, oy, cx, cy, cw, ch); } void insertEntry(TQListViewItem * i, const TQPixmap & pix = TQPixmap(), const TQString & s = - TQString::null); + TQString()); protected: void keyPressEvent(TQKeyEvent * e); @@ -106,7 +107,7 @@ public slots: void removeTabPage(); private: - void insertObject(TQObject * o, TQListViewItem * parent); + void insertObject(TQObject * o, TQListViewItem * tqparent); TQWidget *findWidget(TQListViewItem * i); TQListViewItem *findItem(TQWidget * w); TQWidget *current() const; @@ -120,12 +121,13 @@ protected: bool deselect; }; -class HierarchyView : public QTabWidget +class HierarchyView : public TQTabWidget { Q_OBJECT + TQ_OBJECT public: - HierarchyView( TQWidget *parent ); + HierarchyView( TQWidget *tqparent ); ~HierarchyView(); void setFormWindow( FormWindow *fw, TQWidget *w ); |