From fd9e25d698c7b6bf971d802383333e6b9a90ae82 Mon Sep 17 00:00:00 2001
From: Paul Kolomiets <paul.kolomiets@gmail.com>
Date: Mon, 10 Jan 2011 16:35:24 +0100
Subject: [PATCH] set stretch last section for class view and project view
 trees

Merge-request: 225
Reviewed-by: dt <qtc-committer@nokia.com>
---
 src/plugins/classview/classviewnavigationwidget.cpp | 1 +
 src/plugins/projectexplorer/projecttreewidget.cpp   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/plugins/classview/classviewnavigationwidget.cpp b/src/plugins/classview/classviewnavigationwidget.cpp
index 4523fe37604..82a9c4a8e3e 100644
--- a/src/plugins/classview/classviewnavigationwidget.cpp
+++ b/src/plugins/classview/classviewnavigationwidget.cpp
@@ -83,6 +83,7 @@ NavigationWidget::NavigationWidget(QWidget *parent) :
 
     // tree model
     d_ptr->treeModel = new TreeItemModel(this);
+    d_ptr->ui->treeView->header()->setStretchLastSection(true);
     d_ptr->ui->treeView->setModel(d_ptr->treeModel);
 
     // connect signal/slots
diff --git a/src/plugins/projectexplorer/projecttreewidget.cpp b/src/plugins/projectexplorer/projecttreewidget.cpp
index 8f7a60fafa7..30469c57a6d 100644
--- a/src/plugins/projectexplorer/projecttreewidget.cpp
+++ b/src/plugins/projectexplorer/projecttreewidget.cpp
@@ -116,6 +116,7 @@ ProjectTreeWidget::ProjectTreeWidget(QWidget *parent)
             this, SLOT(filesAboutToBeRemoved(FolderNode *, const QList<FileNode*> &)));
 
     m_view = new ProjectTreeView;
+    m_view->header()->setStretchLastSection(true);
     m_view->setModel(m_model);
     setFocusProxy(m_view);
     initView();
-- 
GitLab