summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/treeview.h
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/ui/treeview.h')
-rw-r--r--klinkstatus/src/ui/treeview.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/klinkstatus/src/ui/treeview.h b/klinkstatus/src/ui/treeview.h
index eef34ff8..4d67c4f4 100644
--- a/klinkstatus/src/ui/treeview.h
+++ b/klinkstatus/src/ui/treeview.h
@@ -23,18 +23,18 @@ class LinkMatcher;
@author Paulo Moura Guedes
TreeView and TreeViewItem and currently a little messes up in its API
because of ResultView. ResultView class was to be the base interface to
-a QTable and a QListView, but the APIs are a little diferent... then I realize
-that a QTable view isn't needed at all so some day I will clean this up.
+a TQTable and a TQListView, but the APIs are a little diferent... then I realize
+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
public:
- TreeView(QWidget *parent = 0, const char *name = 0);
+ TreeView(TQWidget *parent = 0, const char *name = 0);
~TreeView();
- virtual void setColumns(QStringList const& columns);
+ virtual void setColumns(TQStringList const& columns);
virtual void clear();
void removeColunas();
virtual void show(ResultView::Status const& status);
@@ -48,17 +48,17 @@ public:
except if the user scrolls the view up (like Konsole).
If tree_view, it follows always the last link inserted.
*/
- void ensureRowVisible(const QListViewItem * i, bool tree_display);
+ void ensureRowVisible(const TQListViewItem * i, bool tree_display);
virtual bool isEmpty() const;
- TreeViewItem* myItem(QListViewItem* item) const;
+ TreeViewItem* myItem(TQListViewItem* item) const;
protected:
- virtual void resizeEvent(QResizeEvent *e);
+ virtual void resizeEvent(TQResizeEvent *e);
private slots:
- void slotPopupContextMenu(QListViewItem *, const QPoint &, int);
+ void slotPopupContextMenu(TQListViewItem *, const TQPoint &, int);
virtual void slotCopyUrlToClipboard() const;
virtual void slotCopyParentUrlToClipboard() const;
virtual void slotCopyCellTextToClipboard() const;
@@ -67,7 +67,7 @@ private slots:
virtual void slotEditReferrerWithQuanta(KURL const& url);
virtual void slotViewUrlInBrowser();
virtual void slotViewParentUrlInBrowser();
- virtual void loadContextTableMenu(QValueVector<KURL> const& referrers, bool is_root = false);
+ virtual void loadContextTableMenu(TQValueVector<KURL> const& referrers, bool is_root = false);
private:
void resetColumns();
@@ -90,27 +90,27 @@ class TreeViewItem: public KListViewItem
{
public:
- TreeViewItem(TreeView* parent, QListViewItem* after,
+ TreeViewItem(TreeView* parent, TQListViewItem* after,
LinkStatus const* linkstatus);
- TreeViewItem(TreeView* root, QListViewItem* parent_item, QListViewItem* after,
+ TreeViewItem(TreeView* root, TQListViewItem* parent_item, TQListViewItem* after,
LinkStatus const* linkstatus);
virtual ~TreeViewItem();
- void setLastChild(QListViewItem* last_child);
- QListViewItem* lastChild() const;
+ void setLastChild(TQListViewItem* last_child);
+ TQListViewItem* lastChild() const;
- QString key(int column, bool) const;
+ TQString key(int column, bool) const;
LinkStatus const* linkStatus() const;
protected:
- virtual void paintCell(QPainter * p, const QColorGroup & cg, int column, int width, int align);
+ virtual void paintCell(TQPainter * p, const TQColorGroup & cg, int column, int width, int align);
private:
void init(LinkStatus const* linkstatus);
private:
- QValueVector<TreeColumnViewItem> column_items_;
- QListViewItem* last_child_;
+ TQValueVector<TreeColumnViewItem> column_items_;
+ TQListViewItem* last_child_;
TreeView* root_;
};
@@ -129,9 +129,9 @@ public:
//void setColumnIndex(int i);
int columnIndex() const;
LinkStatus const* linkStatus() const;
- QColor const& textStatusColor() const;
- QString text(int column) const;
- QPixmap pixmap(int column) const;
+ TQColor const& textStatusColor() const;
+ TQString text(int column) const;
+ TQPixmap pixmap(int column) const;
private:
TreeView* root_;