summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/QtTreeWidgetItem.h')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidgetItem.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidgetItem.h b/Swift/QtUI/Roster/QtTreeWidgetItem.h
index 7a459d5..8b69ae2 100644
--- a/Swift/QtUI/Roster/QtTreeWidgetItem.h
+++ b/Swift/QtUI/Roster/QtTreeWidgetItem.h
@@ -48,12 +48,15 @@ class QtTreeWidgetItem : public QObject, public TreeWidgetItem {
void hide();
void show();
bool isShown();
- bool isContact();
+ bool isContact() const;
bool isExpanded();
+ QString getName() const {return displayName_;};
+ StatusShow::Type getStatusShow() const {return statusShowType_;};
QWidget* getCollapsedRosterWidget();
QWidget* getExpandedRosterWidget();
-
+ bool operator<(const QtTreeWidgetItem& item) const;
+
signals:
void changed(QtTreeWidgetItem*);
private slots:
@@ -72,6 +75,8 @@ class QtTreeWidgetItem : public QObject, public TreeWidgetItem {
StatusShow::Type statusShowType_;
};
+//bool itemLessThan(const QtTreeWidgetItem& left, const QtTreeWidgetItem& right);
+
}
#endif