From bad2b7a9f6e287130e756e9113ae910888137a6e Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 20 Jan 2010 12:40:17 +0000 Subject: [PATCH] disabled unused column in Shared files tab git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2096 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/SharedFilesDialog.cpp | 28 +++++++++++--------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/retroshare-gui/src/gui/SharedFilesDialog.cpp b/retroshare-gui/src/gui/SharedFilesDialog.cpp index ceb565651..12f7c75f5 100644 --- a/retroshare-gui/src/gui/SharedFilesDialog.cpp +++ b/retroshare-gui/src/gui/SharedFilesDialog.cpp @@ -111,6 +111,10 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent) ui.remoteDirTreeView->setModel(model); ui.localDirTreeView->setModel(localModel); + ui.remoteDirTreeView->setColumnHidden(2,true) ; + ui.remoteDirTreeView->setColumnHidden(4,true) ; + ui.localDirTreeView->setColumnHidden(4,true) ; + connect( ui.remoteDirTreeView, SIGNAL( collapsed(const QModelIndex & ) ), model, SLOT( collapsed(const QModelIndex & ) ) ); connect( ui.remoteDirTreeView, SIGNAL( expanded(const QModelIndex & ) ), @@ -124,17 +128,17 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent) /* Set header resize modes and initial section sizes */ QHeaderView * l_header = ui.localDirTreeView->header () ; - l_header->setResizeMode (0, QHeaderView::Interactive); - l_header->setResizeMode (1, QHeaderView::Fixed); - l_header->setResizeMode (2, QHeaderView::Interactive); - l_header->setResizeMode (3, QHeaderView::Interactive); - l_header->setResizeMode (4, QHeaderView::Interactive); +// l_header->setResizeMode (0, QHeaderView::Interactive); +// l_header->setResizeMode (1, QHeaderView::Fixed); +// l_header->setResizeMode (2, QHeaderView::Interactive); +// l_header->setResizeMode (3, QHeaderView::Interactive); +// l_header->setResizeMode (4, QHeaderView::Interactive); l_header->resizeSection ( 0, 490 ); l_header->resizeSection ( 1, 70 ); l_header->resizeSection ( 2, 130 ); l_header->resizeSection ( 3, 100 ); - l_header->resizeSection ( 4, 100 ); +// l_header->resizeSection ( 4, 100 ); /* Set header resize modes and initial section sizes */ QHeaderView * r_header = ui.remoteDirTreeView->header () ; @@ -142,17 +146,17 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent) r_header->setResizeMode (0, QHeaderView::Interactive); r_header->setStretchLastSection(false); - r_header->setResizeMode (1, QHeaderView::Fixed); - r_header->setResizeMode (2, QHeaderView::Interactive); - r_header->setResizeMode (3, QHeaderView::Fixed); - r_header->setResizeMode (4, QHeaderView::Interactive); +// r_header->setResizeMode (1, QHeaderView::Fixed); +// // r_header->setResizeMode (2, QHeaderView::Interactive); +// r_header->setResizeMode (3, QHeaderView::Fixed); +// // r_header->setResizeMode (4, QHeaderView::Interactive); r_header->resizeSection ( 0, 490 ); r_header->resizeSection ( 1, 70 ); - r_header->resizeSection ( 2, 130 ); +// r_header->resizeSection ( 2, 0 ); r_header->resizeSection ( 3, 100 ); - r_header->resizeSection ( 4, 100 ); +// r_header->resizeSection ( 4, 0 ); l_header->setHighlightSections(false); r_header->setHighlightSections(false);