mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
Add GroupTreeWidget show header action.
It's not possible to resize them. Friend's posts column can be shown too to understand sort. Menu to show column is visible for all type of item.
This commit is contained in:
parent
41727210cd
commit
a0bf49448d
3 changed files with 252 additions and 233 deletions
|
@ -36,6 +36,14 @@ class RSTreeWidget;
|
|||
#define GROUPTREEWIDGET_COLOR_PRIVATEKEY 1
|
||||
#define GROUPTREEWIDGET_COLOR_COUNT 2
|
||||
|
||||
#define GTW_COLUMN_NAME 0
|
||||
#define GTW_COLUMN_UNREAD 1
|
||||
#define GTW_COLUMN_POSTS 2
|
||||
#define GTW_COLUMN_POPULARITY 3
|
||||
#define GTW_COLUMN_LAST_POST 4
|
||||
#define GTW_COLUMN_COUNT 5
|
||||
#define GTW_COLUMN_DATA GTW_COLUMN_NAME
|
||||
|
||||
namespace Ui {
|
||||
class GroupTreeWidget;
|
||||
}
|
||||
|
@ -112,7 +120,7 @@ public:
|
|||
void setTextColorCategory(QColor color) { mTextColor[GROUPTREEWIDGET_COLOR_CATEGORY] = color; }
|
||||
void setTextColorPrivateKey(QColor color) { mTextColor[GROUPTREEWIDGET_COLOR_PRIVATEKEY] = color; }
|
||||
|
||||
bool getGroupName(QString id, QString& name);
|
||||
bool getGroupName(const QString& id, QString& name);
|
||||
|
||||
int subscribeFlags(const QString &id);
|
||||
|
||||
|
@ -132,6 +140,7 @@ private slots:
|
|||
void filterChanged();
|
||||
void distantSearch();
|
||||
|
||||
void showHeader(bool toShow);
|
||||
void sort();
|
||||
|
||||
private:
|
||||
|
@ -143,6 +152,7 @@ private:
|
|||
|
||||
private:
|
||||
QMenu *displayMenu;
|
||||
QAction *actionShowHeader;
|
||||
QAction *actionSortAscending;
|
||||
QAction *actionSortDescending;
|
||||
QAction *actionSortByName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue