summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/treeview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /klinkstatus/src/ui/treeview.h
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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_;