diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-12-17 20:48:31 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-01-04 10:46:26 +0100 |
commit | 74559dccc84ed0f0f7d8f57165fe387c3e112485 (patch) | |
tree | f46f16ee39997889535bc5fcb4031ca4d8df26b0 /src/widgets/widgets/qmenu.cpp | |
parent | 179696fcb809d5335dbbeceefb38a216bff81f5f (diff) |
Update QPalette() documentation to not mention the application palette
It's an implementation detail that the default constructed palette
happens to use the d-pointer of the application palette, and as a
result has the same colors as the application palette if requested.
The palette has an empty resolve mask, and hence all the colors in
the palette are undefined. Users should not rely on QPalette() to
represent the application palette when for example overriding a
parent palette.
Task-number: QTBUG-85226
Pick-to: 6.0 5.15
Change-Id: Ia6747887eef6e9a5f21b2002066608c433260de2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/widgets/qmenu.cpp')
0 files changed, 0 insertions, 0 deletions