From af3b78449c772857c2f7f1643842cc9f6c632c97 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 1 Jan 2010 18:58:39 +0000 Subject: [PATCH] added use for Authd forum a different forum icon git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1956 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ForumsDialog.cpp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index 425ce85f1..80f95d66f 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -61,6 +61,7 @@ #define IMAGE_UNSUBSCRIBE ":/images/cancel.png" #define IMAGE_INFO ":/images/info16.png" #define IMAGE_NEWFORUM ":/images/new_forum16.png" +#define IMAGE_FORUMAUTHD ":/images/konv_message2.png" @@ -318,7 +319,13 @@ void ForumsDialog::insertForums() if (it->forumFlags & RS_DISTRIB_AUTHEN_REQ) { name += " (AUTHD)"; + item -> setIcon(0,(QIcon(IMAGE_FORUMAUTHD))); } + else + { + item -> setIcon(0,(QIcon(IMAGE_FORUM))); + } + item -> setText(0, name); /* (1) Popularity */ @@ -339,7 +346,6 @@ void ForumsDialog::insertForums() // Id. item -> setText(4, QString::fromStdString(it->forumId)); AdminList.append(item); - item -> setIcon(0,(QIcon(IMAGE_FORUM))); } else if (flags & RS_DISTRIB_SUBSCRIBED) { @@ -358,7 +364,13 @@ void ForumsDialog::insertForums() if (it->forumFlags & RS_DISTRIB_AUTHEN_REQ) { name += " (AUTHD)"; + item -> setIcon(0,(QIcon(IMAGE_FORUMAUTHD))); } + else + { + item -> setIcon(0,(QIcon(IMAGE_FORUM))); + } + item -> setText(0, name); /* (1) Popularity */ @@ -379,7 +391,6 @@ void ForumsDialog::insertForums() // Id. item -> setText(4, QString::fromStdString(it->forumId)); SubList.append(item); - item -> setIcon(0,(QIcon(IMAGE_FORUM))); } else { @@ -432,8 +443,15 @@ void ForumsDialog::insertForums() if (it->forumFlags & RS_DISTRIB_AUTHEN_REQ) { name += " (AUTHD)"; + item -> setIcon(0,(QIcon(IMAGE_FORUMAUTHD))); } + else + { + item -> setIcon(0,(QIcon(IMAGE_FORUM))); + } + item -> setText(0, name); + /* (1) Popularity */ { @@ -456,12 +474,10 @@ void ForumsDialog::insertForums() if (it->pop < popLimit) { OtherList.append(item); - item -> setIcon(0,(QIcon(IMAGE_FORUM))); } else { PopList.append(item); - item -> setIcon(0,(QIcon(IMAGE_FORUM))); } } }