added icon

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6581 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2013-08-18 14:19:03 +00:00
parent 20c35ea27f
commit 52efb8b21d
3 changed files with 6 additions and 2 deletions

View File

@ -33,8 +33,8 @@
#define TYPE_LOBBY 1 #define TYPE_LOBBY 1
#define IMAGE_CREATE "" #define IMAGE_CREATE ""
#define IMAGE_PUBLIC "" #define IMAGE_PUBLIC ":/images/chat_x24.png"
#define IMAGE_PRIVATE "" #define IMAGE_PRIVATE ":/images/chat_red24.png"
#define IMAGE_UNSUBSCRIBE "" #define IMAGE_UNSUBSCRIBE ""
#define IMAGE_SUBSCRIBE "" #define IMAGE_SUBSCRIBE ""
#define IMAGE_PEER_ENTERING ":images/user/add_user24.png" #define IMAGE_PEER_ENTERING ":images/user/add_user24.png"
@ -85,12 +85,14 @@ ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WFlags flags)
privateLobbyItem = new RSTreeWidgetItem(compareRole, TYPE_FOLDER); privateLobbyItem = new RSTreeWidgetItem(compareRole, TYPE_FOLDER);
privateLobbyItem->setText(COLUMN_NAME, tr("Private Lobbies")); privateLobbyItem->setText(COLUMN_NAME, tr("Private Lobbies"));
privateLobbyItem->setData(COLUMN_NAME, ROLE_SORT, "1"); privateLobbyItem->setData(COLUMN_NAME, ROLE_SORT, "1");
privateLobbyItem->setIcon(COLUMN_NAME, QIcon(IMAGE_PRIVATE));
privateLobbyItem->setData(COLUMN_DATA, ROLE_PRIVACYLEVEL, RS_CHAT_LOBBY_PRIVACY_LEVEL_PRIVATE); privateLobbyItem->setData(COLUMN_DATA, ROLE_PRIVACYLEVEL, RS_CHAT_LOBBY_PRIVACY_LEVEL_PRIVATE);
lobbyTreeWidget->insertTopLevelItem(0, privateLobbyItem); lobbyTreeWidget->insertTopLevelItem(0, privateLobbyItem);
publicLobbyItem = new RSTreeWidgetItem(compareRole, TYPE_FOLDER); publicLobbyItem = new RSTreeWidgetItem(compareRole, TYPE_FOLDER);
publicLobbyItem->setText(COLUMN_NAME, tr("Public Lobbies")); publicLobbyItem->setText(COLUMN_NAME, tr("Public Lobbies"));
publicLobbyItem->setData(COLUMN_NAME, ROLE_SORT, "2"); publicLobbyItem->setData(COLUMN_NAME, ROLE_SORT, "2");
publicLobbyItem->setIcon(COLUMN_NAME, QIcon(IMAGE_PUBLIC));
publicLobbyItem->setData(COLUMN_DATA, ROLE_PRIVACYLEVEL, RS_CHAT_LOBBY_PRIVACY_LEVEL_PUBLIC); publicLobbyItem->setData(COLUMN_DATA, ROLE_PRIVACYLEVEL, RS_CHAT_LOBBY_PRIVACY_LEVEL_PUBLIC);
lobbyTreeWidget->insertTopLevelItem(1, publicLobbyItem); lobbyTreeWidget->insertTopLevelItem(1, publicLobbyItem);

View File

@ -140,6 +140,8 @@
<file>images/chat_24.png</file> <file>images/chat_24.png</file>
<file>images/chat_32.png</file> <file>images/chat_32.png</file>
<file>images/chat_64.png</file> <file>images/chat_64.png</file>
<file>images/chat_x24.png</file>
<file>images/chat_red24.png</file>
<file>images/cancel.png</file> <file>images/cancel.png</file>
<file>images/close-down.png</file> <file>images/close-down.png</file>
<file>images/close_normal.png</file> <file>images/close_normal.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB