diff options
Diffstat (limited to 'klinkstatus/src/ui/treeview.h')
-rw-r--r-- | klinkstatus/src/ui/treeview.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/klinkstatus/src/ui/treeview.h b/klinkstatus/src/ui/treeview.h index 4d67c4f4..ccb84bb1 100644 --- a/klinkstatus/src/ui/treeview.h +++ b/klinkstatus/src/ui/treeview.h @@ -29,15 +29,16 @@ that a TQTable view isn't needed at all so some day I will clean this up. class TreeView : public KListView, public ResultView { Q_OBJECT + TQ_OBJECT public: - TreeView(TQWidget *parent = 0, const char *name = 0); + TreeView(TQWidget *tqparent = 0, const char *name = 0); ~TreeView(); virtual void setColumns(TQStringList const& columns); virtual void clear(); void removeColunas(); - virtual void show(ResultView::Status const& status); + virtual void show(ResultView::tqStatus const& status); void show(LinkMatcher link_matcher); virtual void showAll(); @@ -74,7 +75,7 @@ private: double columnsWidth() const; private: - int current_column_; // apparently it's impossible to know what is the current column + int current_column_; // aptqparently it's impossible to know what is the current column bool tree_display_; }; @@ -90,23 +91,23 @@ class TreeViewItem: public KListViewItem { public: - TreeViewItem(TreeView* parent, TQListViewItem* after, - LinkStatus const* linkstatus); - TreeViewItem(TreeView* root, TQListViewItem* parent_item, TQListViewItem* after, - LinkStatus const* linkstatus); + TreeViewItem(TreeView* tqparent, TQListViewItem* after, + LinktqStatus const* linkstatus); + TreeViewItem(TreeView* root, TQListViewItem* tqparent_item, TQListViewItem* after, + LinktqStatus const* linkstatus); virtual ~TreeViewItem(); void setLastChild(TQListViewItem* last_child); TQListViewItem* lastChild() const; TQString key(int column, bool) const; - LinkStatus const* linkStatus() const; + LinktqStatus const* linktqStatus() const; protected: virtual void paintCell(TQPainter * p, const TQColorGroup & cg, int column, int width, int align); private: - void init(LinkStatus const* linkstatus); + void init(LinktqStatus const* linkstatus); private: TQValueVector<TreeColumnViewItem> column_items_; @@ -123,19 +124,19 @@ public: TreeColumnViewItem() {} ; - TreeColumnViewItem(TreeView* root, LinkStatus const* linkstatus, int column_index); + TreeColumnViewItem(TreeView* root, LinktqStatus const* linkstatus, int column_index); ~TreeColumnViewItem(); //void setColumnIndex(int i); int columnIndex() const; - LinkStatus const* linkStatus() const; + LinktqStatus const* linktqStatus() const; TQColor const& textStatusColor() const; TQString text(int column) const; TQPixmap pixmap(int column) const; private: TreeView* root_; - LinkStatus const* ls_; + LinktqStatus const* ls_; int column_index_; }; |