From 572d2c198d59364c1d180257543aad776b41b6d6 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 3 Feb 2010 22:42:23 +0000 Subject: [PATCH] fixed to not stretch last column but stretch first column git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2180 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessengerWindow.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/MessengerWindow.cpp b/retroshare-gui/src/gui/MessengerWindow.cpp index 208e7d442..2a49b17f7 100644 --- a/retroshare-gui/src/gui/MessengerWindow.cpp +++ b/retroshare-gui/src/gui/MessengerWindow.cpp @@ -121,9 +121,13 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags) //ui.messengertreeWidget->sortItems( 0, Qt::AscendingOrder ); QHeaderView * _header = ui.messengertreeWidget->header () ; - _header->setResizeMode (0, QHeaderView::Interactive); + _header->setResizeMode (0, QHeaderView::Stretch); + _header->setResizeMode (1, QHeaderView::Interactive); + _header->setStretchLastSection(false); - _header->resizeSection ( 0, 200 ); + + _header->resizeSection ( 0, 200 ); + _header->resizeSection ( 1, 100 ); //LogoBar _rsLogoBarmessenger = NULL; @@ -139,7 +143,7 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags) insertPeers(); updateAvatar(); loadmystatus(); - loadstatus(); + //loadstatus(); displayMenu();