mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 07:40:21 -04:00
Enabled sort by columns other than name combined with sort by state in FriendList.
This commit is contained in:
parent
176c3abd8c
commit
334ddf8efc
5 changed files with 74 additions and 121 deletions
|
@ -56,12 +56,6 @@ public:
|
|||
COLUMN_IP = 2
|
||||
};
|
||||
|
||||
enum SortMode
|
||||
{
|
||||
SORT_MODE_NAME = 1,
|
||||
SORT_MODE_STATE = 2
|
||||
};
|
||||
|
||||
public:
|
||||
explicit FriendList(QWidget *parent = 0);
|
||||
~FriendList();
|
||||
|
@ -79,8 +73,8 @@ public:
|
|||
virtual void updateDisplay();
|
||||
void setColumnVisible(Column column, bool visible);
|
||||
|
||||
void setSortMode(SortMode sortMode);
|
||||
SortMode sortMode();
|
||||
void sortByColumn(Column column, Qt::SortOrder sortOrder);
|
||||
bool isSortByState();
|
||||
|
||||
QColor textColorGroup() const { return mTextColorGroup; }
|
||||
QColor textColorStatusOffline() const { return mTextColorStatus[RS_STATUS_OFFLINE]; }
|
||||
|
@ -98,8 +92,7 @@ public:
|
|||
|
||||
public slots:
|
||||
void filterItems(const QString &text);
|
||||
void setSortByName();
|
||||
void setSortByState();
|
||||
void sortByState(bool sort);
|
||||
|
||||
void setShowGroups(bool show);
|
||||
void setHideUnconnected(bool hidden);
|
||||
|
@ -116,6 +109,7 @@ protected:
|
|||
private:
|
||||
Ui::FriendList *ui;
|
||||
RSTreeWidgetItemCompareRole *mCompareRole;
|
||||
QAction *mActionSortByState;
|
||||
|
||||
// Settings for peer list display
|
||||
bool mShowGroups;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue