blob: c35a8408fa4faafbcaa39ec7f16b8c0cd69650ca (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#ifndef SWIFT_QtTreeWidgetItem_H
#define SWIFT_QtTreeWidgetItem_H
#include <QColor>
#include "Swiften/Base/String.h"
#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/RosterItem.h"
#include "Swift/QtUI/QtSwiftUtil.h"
namespace Swift {
class QtTreeWidget;
class QtTreeWidgetItem : public TreeWidgetItem, public RosterItem {
public:
QtTreeWidgetItem(RosterItem* parentItem) : RosterItem(parentItem) {
}
void setText(const String& text) {
displayName_ = P2QSTRING(text);
// QTreeWidgetItem::setText(0, P2QSTRING(text));
}
void setTextColor(unsigned long color) {
// QTreeWidgetItem::setTextColor(0, QColor(
// ((color & 0xFF0000)>>16),
// ((color & 0xFF00)>>8),
// (color & 0xFF)));
}
void setBackgroundColor(unsigned long color) {
// QTreeWidgetItem::setBackgroundColor(0, QColor(
// ((color & 0xFF0000)>>16),
// ((color & 0xFF00)>>8),
// (color & 0xFF)));
}
void setExpanded(bool b) {
//treeWidget()->setItemExpanded(this, b);
}
void hide() {
//setHidden(true);
}
void show() {
//setHidden(false);
}
QWidget* getCollapsedRosterWidget();
QWidget* getExpandedRosterWidget();
private:
QString displayName_;
};
}
#endif
|