From 940ffd6d9cad6bc8b0d27d28227c662aeae51384 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 6 Jul 2013 21:45:18 +0000 Subject: [PATCH] make friendlist fully resizable (Patch from phenom) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6490 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/common/FriendList.cpp | 9 +++++---- retroshare-gui/src/gui/common/FriendList.ui | 5 ++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/common/FriendList.cpp b/retroshare-gui/src/gui/common/FriendList.cpp index 240ad5dff..cfe23144d 100644 --- a/retroshare-gui/src/gui/common/FriendList.cpp +++ b/retroshare-gui/src/gui/common/FriendList.cpp @@ -257,17 +257,18 @@ void FriendList::initializeHeader(bool afterLoadSettings) { // set column size QHeaderView *header = ui->peerTreeWidget->header(); - header->setMovable(false); - header->setResizeMode(COLUMN_NAME, QHeaderView::Stretch); + header->setMovable(true); + //header->setResizeMode(COLUMN_NAME, QHeaderView::Stretch); + header->setResizeMode(COLUMN_NAME, QHeaderView::Interactive); header->setResizeMode(COLUMN_STATE, QHeaderView::Interactive); header->setResizeMode(COLUMN_LAST_CONTACT, QHeaderView::Interactive); header->setResizeMode(COLUMN_IP, QHeaderView::Interactive); header->setResizeMode(COLUMN_AVATAR, QHeaderView::Fixed); - if (!afterLoadSettings) { +/* if (!afterLoadSettings) { header->resizeSection(COLUMN_NAME, 150); header->resizeSection(COLUMN_LAST_CONTACT, 120); - } + }*/ header->resizeSection(COLUMN_AVATAR, COLUMN_AVATAR_WIDTH); } diff --git a/retroshare-gui/src/gui/common/FriendList.ui b/retroshare-gui/src/gui/common/FriendList.ui index 59b555674..72bb5f303 100644 --- a/retroshare-gui/src/gui/common/FriendList.ui +++ b/retroshare-gui/src/gui/common/FriendList.ui @@ -53,8 +53,11 @@ 5 + + true + - false + true