mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 11:54:30 -04:00
added a structure in GxsNetService to record who sends info about groups, so as to dynamically compute group popularity. The GUI needs to be improved to update regularly so as to reflect current values for popularity. For now only subscribing/unsubscribing and new messages trigger the update
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7587 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c527fa9375
commit
8c2ba8b980
6 changed files with 64 additions and 22 deletions
|
@ -27,21 +27,21 @@ QIcon PopularityDefs::icon(int popularity)
|
|||
{
|
||||
if (popularity == 0) {
|
||||
return QIcon(":/images/hot_0.png");
|
||||
} else if (popularity <= 7) {
|
||||
/* 1-7 */
|
||||
} else if (popularity <= 1) {
|
||||
/* 1-1 */
|
||||
return QIcon(":/images/hot_1.png");
|
||||
} else if (popularity <= 15) {
|
||||
/* 8-15 */
|
||||
} else if (popularity <= 2) {
|
||||
/* 2-2 */
|
||||
return QIcon(":/images/hot_2.png");
|
||||
} else if (popularity <= 24) {
|
||||
/* 16-24 */
|
||||
} else if (popularity <= 5) {
|
||||
/* 3-5 */
|
||||
return QIcon(":/images/hot_3.png");
|
||||
} else if (popularity <= 34) {
|
||||
/* 25-34 */
|
||||
} else if (popularity <= 10) {
|
||||
/* 6-10 */
|
||||
return QIcon(":/images/hot_4.png");
|
||||
}
|
||||
|
||||
/* >34 */
|
||||
/* >10 */
|
||||
return QIcon(":/images/hot_5.png");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue