mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
Make Gxs categories not sortable, item sort by value and possibility for
null to be always at end.
This commit is contained in:
parent
861feb113c
commit
d3a0ed7690
4 changed files with 156 additions and 91 deletions
|
@ -90,8 +90,16 @@ public:
|
|||
// Load and save settings (group must be started from the caller)
|
||||
void processSettings(bool load);
|
||||
|
||||
// Add a new category item
|
||||
QTreeWidgetItem *addCategoryItem(const QString &name, const QIcon &icon, bool expand);
|
||||
///
|
||||
/// \brief addCategoryItem: Add a new category item
|
||||
/// \param name: Name shown on item
|
||||
/// \param icon: Icon used for item
|
||||
/// \param expand: If it is expanded by default
|
||||
/// \param sortOrder: To asc sort them in tree
|
||||
/// \return
|
||||
///
|
||||
QTreeWidgetItem *addCategoryItem(const QString &name, const QIcon &icon, bool expand, int sortOrder = -1);
|
||||
|
||||
// Add a new search item
|
||||
void setDistSearchVisible(bool) ; // shows/hides distant search UI parts.
|
||||
QTreeWidgetItem *addSearchItem(const QString& search_string, uint32_t id, const QIcon &icon) ;
|
||||
|
@ -153,6 +161,9 @@ private:
|
|||
/* Color definitions (for standard see qss.default) */
|
||||
QColor mTextColor[GROUPTREEWIDGET_COLOR_COUNT];
|
||||
|
||||
// Compare role used for each column
|
||||
RSTreeWidgetItemCompareRole *compareRole;
|
||||
|
||||
Ui::GroupTreeWidget *ui;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue