Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/listitem.h')
-rw-r--r--src/ui/listitem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/listitem.h b/src/ui/listitem.h
index 3c9efea..5795917 100644
--- a/src/ui/listitem.h
+++ b/src/ui/listitem.h
@@ -35,6 +35,10 @@ public:
return listitem_item;
}
+ inline const std::string & sortkey() const {
+ return listitem_sortkey;
+ }
+
inline void set_info(const core::Info *info) {
listitem_info = info;
}
@@ -42,6 +46,10 @@ public:
inline void set_item(const core::Item *item) {
listitem_item = item;
}
+
+ inline void set_sortkey(const std::string sortkey) {
+ listitem_sortkey.assign(sortkey);
+ }
void select();
@@ -59,6 +67,7 @@ protected:
private:
const core::Info *listitem_info;
const core::Item *listitem_item;
+ std::string listitem_sortkey;
};
} // namespace ui