Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-09 12:43:23 +0000
committerStijn Buys <ingar@osirion.org>2010-11-09 12:43:23 +0000
commitfdcff7183b035a27ff960f347b9975ab8e67a3cd (patch)
tree03b009c44804d726a8687ad2f622055e28e0f809 /src/ui/listview.h
parentbaf6ad1f48ef08187f50247115c09a3612ebeec3 (diff)
optimized ui:ListView::sort(): replaced bubblesort routine with std::list::sort()
Diffstat (limited to 'src/ui/listview.h')
-rw-r--r--src/ui/listview.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/listview.h b/src/ui/listview.h
index f752ac2..81dd5a5 100644
--- a/src/ui/listview.h
+++ b/src/ui/listview.h
@@ -59,7 +59,11 @@ public:
/// set selection to nothing
void deselect();
- /// sort child ListItems according to their sortkey
+ /**
+ * @brief sort child ListItems according to their sortkey
+ * Sort will fail with an assert error if the ListView
+ * contains any non-ListItem child widgets
+ */
void sort();
protected: