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 <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2021-03-15 12:38:19 +01:00
parent 2aead8b3e4
commit 9d9ac537e8

View File

@@ -128,6 +128,7 @@ void OpenDocumentsTreeView::setModel(QAbstractItemModel *model)
header()->setStretchLastSection(false); header()->setStretchLastSection(false);
header()->setSectionResizeMode(0, QHeaderView::Stretch); header()->setSectionResizeMode(0, QHeaderView::Stretch);
header()->setSectionResizeMode(1, QHeaderView::Fixed); header()->setSectionResizeMode(1, QHeaderView::Fixed);
header()->setMinimumSectionSize(0);
header()->resizeSection(1, 16); header()->resizeSection(1, 16);
} }