summaryrefslogtreecommitdiffstats
blob: 288ed995d4c0cef0343f2b8f63ed0e2b27bc8bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SWIFT_QtTreeWidget_H
#define SWIFT_QtTreeWidget_H

#include <QTreeWidget>

#include "Swiften/Roster/TreeWidgetFactory.h"
#include "Swiften/Roster/TreeWidget.h"
#include "Swiften/Roster/TreeWidgetItem.h"
#include "UI/Qt/QtTreeWidgetItem.h"
#include "UI/Qt/QtTreeWidget.h"

namespace Swift {

class QtTreeWidget : public QTreeWidget, public TreeWidget {
	Q_OBJECT
	public:
		QtTreeWidget(QWidget* parent = 0);
	
	private slots:
		void handleItemActivated(QTreeWidgetItem*, int);

  private:
    void drawBranches(QPainter*, const QRect&, const QModelIndex&) const;
};

}
#endif