forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user