From de190f0bdf86ad1437d68b6698530bae5c092bcc Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 7 Sep 2009 13:05:42 +0000 Subject: [PATCH] fixed own avatar loading on PeersDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1607 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 50d1bef2b..ed35f4d3d 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -96,26 +96,17 @@ PeersDialog::PeersDialog(QWidget *parent) /* hide the Tree +/- */ ui.peertreeWidget -> setRootIsDecorated( false ); - /* Set header resize modes and initial section sizes */ + /* Set header resize modes and initial section sizes */ QHeaderView * _header = ui.peertreeWidget->header () ; - _header->setResizeMode (0, QHeaderView::Custom); + _header->setResizeMode (0, QHeaderView::Custom); _header->setResizeMode (1, QHeaderView::Interactive); _header->setResizeMode (2, QHeaderView::Interactive); - /*_header->setResizeMode (3, QHeaderView::Interactive); - _header->setResizeMode (4, QHeaderView::Interactive); - _header->setResizeMode (5, QHeaderView::Interactive); - _header->setResizeMode (6, QHeaderView::Interactive); - _header->setResizeMode (7, QHeaderView::Interactive);*/ _header->resizeSection ( 0, 25 ); _header->resizeSection ( 1, 100 ); _header->resizeSection ( 2, 100 ); - /*_header->resizeSection ( 3, 120 ); - _header->resizeSection ( 4, 100 ); - _header->resizeSection ( 5, 230 ); - _header->resizeSection ( 6, 120 ); - _header->resizeSection ( 7, 220 );*/ + // set header text aligment QTreeWidgetItem * headerItem = ui.peertreeWidget->headerItem(); @@ -127,7 +118,6 @@ PeersDialog::PeersDialog(QWidget *parent) loadEmoticonsgroupchat(); - //setWindowIcon(QIcon(QString(":/images/rstray3.png"))); connect(ui.lineEdit, SIGNAL(textChanged ( ) ), this, SLOT(checkChat( ) )); connect(ui.Sendbtn, SIGNAL(clicked()), this, SLOT(sendMsg())); @@ -224,7 +214,7 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point ) contextMnu.addAction( removefriendAct); contextMnu.exec( mevent->globalPos() ); - updateAvatar(); + }