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:
thunder2 2011-01-04 20:19:45 +00:00
parent 28b4534fdf
commit ff57befb1f
14 changed files with 403 additions and 133 deletions

View file

@ -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