From 9d9ac537e8686a1625785fa0954049b356c07772 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 15 Mar 2021 12:38:19 +0100 Subject: [PATCH] Don't waste horizontal space in Open Documents view Make sure that the column that we reserve for the X close button is really just 16 pixels wide. Fixes: QTCREATORBUG-23894 Change-Id: Idc2755debfc3a6fb898ea3abd2a882249f7820c1 Reviewed-by: David Schulz --- src/plugins/coreplugin/opendocumentstreeview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/coreplugin/opendocumentstreeview.cpp b/src/plugins/coreplugin/opendocumentstreeview.cpp index 7861199bdd6..c6994c221b4 100644 --- a/src/plugins/coreplugin/opendocumentstreeview.cpp +++ b/src/plugins/coreplugin/opendocumentstreeview.cpp @@ -128,6 +128,7 @@ void OpenDocumentsTreeView::setModel(QAbstractItemModel *model) header()->setStretchLastSection(false); header()->setSectionResizeMode(0, QHeaderView::Stretch); header()->setSectionResizeMode(1, QHeaderView::Fixed); + header()->setMinimumSectionSize(0); header()->resizeSection(1, 16); }