added to forums some usefull icons

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@676 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-08-12 12:03:23 +00:00
parent 189dcbb482
commit c410fc5fff
3 changed files with 15 additions and 2 deletions

View File

@ -65,7 +65,7 @@
#define IMAGE_SEARCH ":/images/filefind.png" #define IMAGE_SEARCH ":/images/filefind.png"
#define IMAGE_TRANSFERS ":/images/ktorrent.png" #define IMAGE_TRANSFERS ":/images/ktorrent.png"
#define IMAGE_FILES ":/images/folder_green.png" #define IMAGE_FILES ":/images/folder_green.png"
#define IMAGE_FORUMS ":/images/user/agt_forum24.png" #define IMAGE_FORUMS ":/images/konversation.png"
#define IMAGE_CHANNELS ":/images/channels.png" #define IMAGE_CHANNELS ":/images/channels.png"
#define IMAGE_PREFERENCES ":/images/settings16.png" #define IMAGE_PREFERENCES ":/images/settings16.png"
#define IMAGE_CHAT ":/images/chats_24x24.png" #define IMAGE_CHAT ":/images/chats_24x24.png"
@ -83,7 +83,7 @@
#define IMAGE_NEWSFEED ":/images/konqsidebar_news24.png" #define IMAGE_NEWSFEED ":/images/konqsidebar_news24.png"
#define IMAGE_LINKS ":/images/ktorrent.png" #define IMAGE_LINKS ":/images/ktorrent.png"
#define IMAGE_MESSAGES ":/images/evolution.png" #define IMAGE_MESSAGES ":/images/evolution.png"
#define IMAGE_BLOGS ":/images/konversation.png" #define IMAGE_BLOGS ":/images/kblogger.png"
/* Keys for UI Preferences */ /* Keys for UI Preferences */

View File

@ -49,6 +49,9 @@
#define IMAGE_DOWNLOAD ":/images/start.png" #define IMAGE_DOWNLOAD ":/images/start.png"
#define IMAGE_DOWNLOADALL ":/images/startall.png" #define IMAGE_DOWNLOADALL ":/images/startall.png"
/* Images for TreeWidget */
#define IMAGE_FOLDER ":/images/folder16.png"
#define IMAGE_FORUM ":/images/konversation16.png"
/** Constructor */ /** Constructor */
ForumsDialog::ForumsDialog(QWidget *parent) ForumsDialog::ForumsDialog(QWidget *parent)
@ -349,6 +352,7 @@ void ForumsDialog::insertForums()
// Id. // Id.
item -> setText(4, QString::fromStdString(it->forumId)); item -> setText(4, QString::fromStdString(it->forumId));
AdminList.append(item); AdminList.append(item);
item -> setIcon(0,(QIcon(IMAGE_FORUM)));
} }
else if (flags & RS_DISTRIB_SUBSCRIBED) else if (flags & RS_DISTRIB_SUBSCRIBED)
{ {
@ -382,6 +386,7 @@ void ForumsDialog::insertForums()
// Id. // Id.
item -> setText(4, QString::fromStdString(it->forumId)); item -> setText(4, QString::fromStdString(it->forumId));
SubList.append(item); SubList.append(item);
item -> setIcon(0,(QIcon(IMAGE_FORUM)));
} }
else else
{ {
@ -452,10 +457,12 @@ void ForumsDialog::insertForums()
if (it->pop < popLimit) if (it->pop < popLimit)
{ {
OtherList.append(item); OtherList.append(item);
item -> setIcon(0,(QIcon(IMAGE_FORUM)));
} }
else else
{ {
PopList.append(item); PopList.append(item);
item -> setIcon(0,(QIcon(IMAGE_FORUM)));
} }
} }
} }
@ -464,21 +471,25 @@ void ForumsDialog::insertForums()
QList<QTreeWidgetItem *> TopList; QList<QTreeWidgetItem *> TopList;
QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0); QTreeWidgetItem *item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Your Forums")); item -> setText(0, tr("Your Forums"));
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
item -> addChildren(AdminList); item -> addChildren(AdminList);
TopList.append(item); TopList.append(item);
item = new QTreeWidgetItem((QTreeWidget*)0); item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Subscribed Forums")); item -> setText(0, tr("Subscribed Forums"));
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
item -> addChildren(SubList); item -> addChildren(SubList);
TopList.append(item); TopList.append(item);
item = new QTreeWidgetItem((QTreeWidget*)0); item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Popular Forums")); item -> setText(0, tr("Popular Forums"));
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
item -> addChildren(PopList); item -> addChildren(PopList);
TopList.append(item); TopList.append(item);
item = new QTreeWidgetItem((QTreeWidget*)0); item = new QTreeWidgetItem((QTreeWidget*)0);
item -> setText(0, tr("Other Forums")); item -> setText(0, tr("Other Forums"));
item -> setIcon(0,(QIcon(IMAGE_FOLDER)));
item -> addChildren(OtherList); item -> addChildren(OtherList);
TopList.append(item); TopList.append(item);

View File

@ -150,10 +150,12 @@
<file>images/invite-friend24.png</file> <file>images/invite-friend24.png</file>
<file>images/invitefriendlabel.png</file> <file>images/invitefriendlabel.png</file>
<file>images/kbackgammon.png</file> <file>images/kbackgammon.png</file>
<file>images/kblogger.png</file>
<file>images/kdmconfig.png</file> <file>images/kdmconfig.png</file>
<file>images/konsole.png</file> <file>images/konsole.png</file>
<file>images/konqsidebar_news24.png</file> <file>images/konqsidebar_news24.png</file>
<file>images/konversation.png</file> <file>images/konversation.png</file>
<file>images/konversation16.png</file>
<file>images/ksysguard.png</file> <file>images/ksysguard.png</file>
<file>images/ktorrent.png</file> <file>images/ktorrent.png</file>
<file>images/ktorrent32.png</file> <file>images/ktorrent32.png</file>