summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_interface/mainwindow.cpp
diff options
context:
space:
mode:
authorMichael Szczerba <michael.szczerba@qt.io>2025-06-27 11:22:12 -0400
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-12-19 09:50:05 +0000
commitdf1292e2b96aab02ad6df778d8336e7958ad5d1c (patch)
treece6649fe2d727a8e65c0d194c130d4a0efac6fc8 /tests/auto/cmake/test_interface/mainwindow.cpp
parentf5055feb86f5a42e3c0c94b99cf462d7cd884323 (diff)
ItemViews/css: Keep text alignment while not overlapping sort indicatorHEADdev
Selecting and deselecting columns in QTableView for sorting can cause the text to jump back and forth because the width of the text element is reduced by the width of the sort arrow element. Instead of changing the width of the text element in respect to the sort arrow element, this fix clips the text instead, retaining the original text positioning. This only applies to right, left, top, or bottom-aligned sort arrows and does not apply when they're center-aligned to avoid clipping out the text in the middle. Fixes: QTBUG-132882 Pick-to: 6.11 6.10 6.8 6.5 Change-Id: I23c0aae40ff471273b3ad4d89d60d48c810efd32 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_interface/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions