diff options
author | Knud Dollereder <knud.dollereder@qt.io> | 2023-06-22 11:23:28 +0200 |
---|---|---|
committer | Knud Dollereder <knud.dollereder@qt.io> | 2023-06-22 13:44:45 +0000 |
commit | 802d1227ea4db310e2f6a8c7a704c67887a13873 (patch) | |
tree | ece93c72db389584e965e4f4beca28e0ec7ef6e0 | |
parent | dfe77895068ef74ed495c7053576dcdf6b8ad7a1 (diff) |
Set a minimum section size in curve editors treeview
This fixes a bug on some systems where resizeSection did not work
as expected making the sections for the icons too wide and therefore
the item names unreadable for the default treeview width.
Fixes: QDS-10131
Change-Id: I10242a7f3f96c580b3256f7ca420466173581e35
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp index c8b99d61c8..82d8e2dd99 100644 --- a/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp @@ -37,6 +37,8 @@ TreeView::TreeView(CurveEditorModel *model, QWidget *parent) setStyle(model->style()); + header()->setMinimumSectionSize(20); + header()->setSectionResizeMode(0, QHeaderView::Stretch); header()->setSectionResizeMode(1, QHeaderView::Fixed); header()->setSectionResizeMode(2, QHeaderView::Fixed); |