summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-07-28 12:45:28 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-08-02 18:46:29 +0200
commitf7662366b120c1cacd43a2c2ae36b03f578d7478 (patch)
tree06aadef16c5b73cb9d6a836f43b432dfc1e1b32d /src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp
parent6f62f25daffafab750f84aec2b90e129e14c2cd9 (diff)
Tests/QTreeView: make styleOptionViewItem more robust
styleOptionViewItem() sometimes fails due to a very small widget size even when using showMaximized(). This might be due to a mis-configured vm scrren size or similar. To make sure that all 4 rows are properly painted set the minimum width to a reasonable value and also resize the sections appropriately. Pick-to: 6.8 6.7 6.5 Fixes: QTBUG-126494 Change-Id: I9956d3119be1ba9e0fb33e4e7b30f40b01b017a5 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions