diff options
author | Wladimir Leuschner <wladimir.leuschner@qt.io> | 2024-06-13 17:23:17 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-06-14 08:37:51 +0000 |
commit | 9d660b4fd454d8d47371f2ed52d24b5b8a9e157e (patch) | |
tree | 658436cbc10dfc53b1fa60bb1fa81f4428ce8fd9 /LICENSE.GPL3-EXCEPT | |
parent | 284985d45788e68f8d56c03725598da9b7194a7c (diff) |
Qt Designer/property browser: Set editor background to white in case of transparent background colorHEADdev
The property editors inherit the QPalette of the underlying
QAbstractItemView::viewport. In case of the QWindows11Style, this color
corresponds to Qt::transparent for the backgroundRole. This leads to the original column of the QTreeView not being painted over by the editor and it may happen that the value is visible two times during editing. This patch sets the color of the editor explicitly to white in case of a
transparent background, such that the original content is again painted over.
Pick-to: 6.8 6.7
Fixes: QTBUG-126274
Change-Id: I4434a738402cf7dc34a2f1b551d5c1031acc65a9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'LICENSE.GPL3-EXCEPT')
0 files changed, 0 insertions, 0 deletions