mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
Added display menu in channels and forums to sort the group tree by name, popularity or last post.
Removed unnecessary loop over the forum messages in ForumDetails. Removed date and time when lastPost==0 in ForumDetails and ChannelDetails. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3950 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
28b4534fdf
commit
ff57befb1f
14 changed files with 403 additions and 133 deletions
|
@ -23,16 +23,19 @@
|
|||
#ifndef _RSTREEWIDGETITEM_H
|
||||
#define _RSTREEWIDGETITEM_H
|
||||
|
||||
#include <QMap>
|
||||
#include <QList>
|
||||
#include <QTreeWidgetItem>
|
||||
|
||||
/* For definition of the UserRole for comparing */
|
||||
class RSTreeWidgetItemCompareRole : QMap<int, int>
|
||||
class RSTreeWidgetItemCompareRole : QMap<int, QList<int> >
|
||||
{
|
||||
public:
|
||||
RSTreeWidgetItemCompareRole();
|
||||
|
||||
void setRole(int column, int role);
|
||||
int findRole(const int column) const;
|
||||
void addRole(int column, int role);
|
||||
void findRoles(const int column, QList<int> &roles) const;
|
||||
};
|
||||
|
||||
class RSTreeWidgetItem : public QTreeWidgetItem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue