mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
removed top level icons in lobby list. Only kept the icons in front of each lobby. Makes the list clearer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6677 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
211d206038
commit
3f66f9d338
@ -87,14 +87,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->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->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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user