diff options
Diffstat (limited to 'src/gui/buddylistview.h')
-rw-r--r-- | src/gui/buddylistview.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/buddylistview.h b/src/gui/buddylistview.h index ef1b4cc..8e200c7 100644 --- a/src/gui/buddylistview.h +++ b/src/gui/buddylistview.h @@ -19,14 +19,14 @@ #ifndef BUDDYLISTVIEW_H #define BUDDYLISTVIEW_H -#include "q3listview.h" +#include <QTreeWidgetItem> #include "qpainter.h" #include "qtooltip.h" #include "presence/buddy.h" #include "presence/presence_epa.h" #include "patterns/observer.h" -class AbstractBLVItem : public Q3ListViewItem { +class AbstractBLVItem : public QTreeWidgetItem { protected: // Text to show as a tool tip. QString tip; @@ -35,8 +35,8 @@ protected: virtual void set_icon(t_presence_state::t_basic_state state); public: - AbstractBLVItem(Q3ListViewItem *parent, const QString &text); - AbstractBLVItem(Q3ListView *parent, const QString &text); + AbstractBLVItem(QTreeWidgetItem *parent, const QString &text); + AbstractBLVItem(QTreeWidget *parent, const QString &text); virtual ~AbstractBLVItem(); virtual QString get_tip(void); }; @@ -51,7 +51,7 @@ private: void set_icon(void); public: - BuddyListViewItem(Q3ListViewItem *parent, t_buddy *_buddy); + BuddyListViewItem(QTreeWidgetItem *parent, t_buddy *_buddy); virtual ~BuddyListViewItem(); virtual void update(void); @@ -75,12 +75,9 @@ private: void set_icon(void); public: - BLViewUserItem(Q3ListView *parent, t_presence_epa *_presence_epa); + BLViewUserItem(QTreeWidget *parent, t_presence_epa *_presence_epa); virtual ~BLViewUserItem(); - void paintCell(QPainter *painter, const QColorGroup &cg, - int column, int width, int align); - virtual void update(void); virtual void subject_destroyed(void); |