summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-04-23 16:59:17 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-04-23 16:59:17 (GMT)
commite3041b220e4846fb2f0273c720d8bcbd78cafaaf (patch)
treec6cfbd8d61417143689f7999d69e189026f3ab54 /Swift/Controllers/Roster/GroupRosterItem.h
parentb6246efcf15f03bb5b44bc79190bc9f4c7be9506 (diff)
downloadswift-e3041b220e4846fb2f0273c720d8bcbd78cafaaf.zip
swift-e3041b220e4846fb2f0273c720d8bcbd78cafaaf.tar.bz2
Sort MUC roles by role, rather than by name.
Resolves: #794 Release-Notes: Non-English translations will no longer have MUC role groups in the incorrect order.
Diffstat (limited to 'Swift/Controllers/Roster/GroupRosterItem.h')
-rw-r--r--Swift/Controllers/Roster/GroupRosterItem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/Controllers/Roster/GroupRosterItem.h b/Swift/Controllers/Roster/GroupRosterItem.h
index 57fa9fa..beb7705 100644
--- a/Swift/Controllers/Roster/GroupRosterItem.h
+++ b/Swift/Controllers/Roster/GroupRosterItem.h
@@ -31,6 +31,8 @@ class GroupRosterItem : public RosterItem {
void setExpanded(bool expanded);
bool isExpanded() const;
boost::signal<void (bool)> onExpandedChanged;
+ void setManualSort(const std::string& manualSortValue);
+ virtual const std::string& getSortableDisplayName() const;
private:
void handleChildrenChanged(GroupRosterItem* group);
void handleDataChanged(RosterItem* item);
@@ -40,6 +42,8 @@ class GroupRosterItem : public RosterItem {
std::vector<RosterItem*> children_;
std::vector<RosterItem*> displayedChildren_;
bool sortByStatus_;
+ bool manualSort_;
+ std::string manualSortValue_;
};
}