summaryrefslogtreecommitdiffstats
blob: e1d83deaa6f93f7ebda4ad9d162956846f7da279 (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 "Swift/QtUI/QtTreeWidgetItem.h"
#include "Swift/QtUI/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