blob: 559f4e2c0728541c7330f3adcd842acb2d15726b (
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
29
30
31
32
33
34
|
#ifndef SWIFT_QtTreeWidget_H
#define SWIFT_QtTreeWidget_H
#include <QTreeView>
#include "Swiften/Roster/TreeWidgetFactory.h"
#include "Swiften/Roster/TreeWidget.h"
#include "Swiften/Roster/TreeWidgetItem.h"
#include "Swift/QtUI/Roster/QtTreeWidgetItem.h"
#include "Swift/QtUI/Roster/QtTreeWidget.h"
#include "Swift/QtUI/Roster/RosterModel.h"
#include "Swift/QtUI/Roster/RosterItem.h"
namespace Swift {
class QtTreeWidget : public QTreeView, public TreeWidget {
Q_OBJECT
public:
QtTreeWidget(QWidget* parent = 0);
~QtTreeWidget();
void show();
QtTreeWidgetItem* getRoot();
//private slots:
// void handleItemActivated(QTreeWidgetItem*, int);
private:
void drawBranches(QPainter*, const QRect&, const QModelIndex&) const;
RosterModel* model_;
QtTreeWidgetItem* treeRoot_;
};
}
#endif
|