1 #ifndef _KVI_WINDOWLIST_TREE_H_
2 #define _KVI_WINDOWLIST_TREE_H_
28 #include <QTreeWidget>
29 #include <QStyledItemDelegate>
30 #include <QAbstractItemView>
33 class KviTreeWindowListItemInternal;
39 friend class KviTreeWindowListItemInternal;
47 virtual QString key()
const;
52 virtual void applyOptions();
55 void setActive(
bool bActive);
72 virtual void mousePressEvent(QMouseEvent *
e);
73 virtual void mouseMoveEvent(QMouseEvent *
e);
74 virtual void wheelEvent(QWheelEvent *
e);
75 virtual void mouseDoubleClickEvent(QMouseEvent *
e);
76 virtual void paintEvent(QPaintEvent * event);
112 virtual void moveEvent(QMoveEvent *);
117 #define KVI_TTBID_HIGHLIGHT Qt::UserRole
118 #define KVI_TTBID_PROGRESS Qt::UserRole + 1
125 : QStyledItemDelegate(pWidget){};
127 QSize sizeHint(
const QStyleOptionViewItem & option,
const QModelIndex & index)
const;
128 void paint(QPainter * painter,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const;
131 #endif //_KVI_WINDOWLIST_TREE_H_
KviTreeWindowListItemDelegate(QAbstractItemView *pWidget=0)
Definition: KviTreeWindowList.h:124
#define KVIRC_API
Definition: kvi_settings.h:128
virtual void updateActivityMeter()
Definition: KviWindowListBase.cpp:93
virtual bool setIterationPointer(KviWindowListItem *)
Definition: KviWindowListBase.h:99
virtual void captionChanged()
Definition: KviWindowListBase.h:62
KviTreeWindowListItem * m_pCurrentItem
Definition: KviTreeWindowList.h:95
virtual void setProgress(int)
Definition: KviWindowListBase.h:64
virtual KviWindowListItem * addItem(KviWindow *)
Definition: KviWindowListBase.h:91
#define e
Definition: detector.cpp:69
virtual void updatePseudoTransparency()
Definition: KviWindowListBase.h:101
virtual KviWindowListItem * nextItem()
Definition: KviWindowListBase.h:96
virtual KviWindowListItem * lastItem(void)
Definition: KviWindowListBase.h:95
Definition: KviTreeWindowList.h:120
KviTreeWindowListTreeWidget * m_pTreeWidget
Definition: KviTreeWindowList.h:94
virtual void highlight(int)
Definition: KviWindowListBase.h:63
virtual void setActiveItem(KviWindowListItem *)
Definition: KviWindowListBase.h:93
Definition: KviTreeWindowList.h:86
QStyledItemDelegate * m_pItemDelegate
Definition: KviTreeWindowList.h:97
~KviTreeWindowListItemDelegate()
Definition: KviTreeWindowList.h:126
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
virtual KviWindowListItem * firstItem()
Definition: KviWindowListBase.h:94
Definition: KviTreeWindowList.h:35
virtual bool removeItem(KviWindowListItem *)
Definition: KviWindowListBase.h:92
Definition: KviWindowListBase.h:77
bool operator<(const QTreeWidgetItem &other) const
Definition: KviTreeWindowList.h:56
virtual KviWindowListItem * prevItem(void)
Definition: KviWindowListBase.h:97
KviDynamicToolTip * m_pToolTip
Definition: KviTreeWindowList.h:96
Definition: KviWindowListBase.h:49
virtual void unhighlight()
Definition: KviWindowListBase.h:66