summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/treeview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /klinkstatus/src/ui/treeview.h
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
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
Diffstat (limited to 'klinkstatus/src/ui/treeview.h')
-rw-r--r--klinkstatus/src/ui/treeview.h25
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_;
};