From ef240cc6f0cc8533599930c040de93da609afd38 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 19 Mar 2013 19:46:39 +0000 Subject: [PATCH] removed column 1 and 2 of lobby lists. Put the info in tooltip => space gained. Enabled sorting in lobby list git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6244 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ChatLobbyWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/gui/ChatLobbyWidget.cpp b/retroshare-gui/src/gui/ChatLobbyWidget.cpp index 120471f0a..96d38a571 100644 --- a/retroshare-gui/src/gui/ChatLobbyWidget.cpp +++ b/retroshare-gui/src/gui/ChatLobbyWidget.cpp @@ -97,6 +97,9 @@ ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WFlags flags) stackedWidget->addWidget(_lobby_blank_page) ; lobbyTreeWidget->expandAll(); + lobbyTreeWidget->setColumnHidden(1,true) ; + lobbyTreeWidget->setColumnHidden(2,true) ; + lobbyTreeWidget->setSortingEnabled(true) ; lobbyChanged(); showBlankPage(0) ; @@ -172,6 +175,7 @@ static void updateItem(QTreeWidgetItem *item, ChatLobbyId id, const std::string for (int column = 0; column < COLUMN_COUNT; ++column) { item->setTextColor(column, color); } + item->setToolTip(0,QObject::tr("Subject: ")+item->text(COLUMN_TOPIC)+"\n"+QObject::tr("Participants: ")+QString::number(count)) ; } void ChatLobbyWidget::addChatPage(ChatLobbyDialog *d)