summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtTreeWidget.h')
-rw-r--r--Swift/QtUI/QtTreeWidget.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Swift/QtUI/QtTreeWidget.h b/Swift/QtUI/QtTreeWidget.h
new file mode 100644
index 0000000..e1d83de
--- /dev/null
+++ b/Swift/QtUI/QtTreeWidget.h
@@ -0,0 +1,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
+