Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.13.0
-
-
4d8ee1b3493b79a6f1cd5200e6102711c0102c9e (qt/qtbase/dev)
Description
QPalette::Data::resolve_mask contains only color role data (e.g. QPalette::WindowText), it means that all methods that use this mask don't work correct. For example:
1) QPalette::isBrushSet (documentation is also wrong):
QPalette p; p.setColor(QPalette::Active, QPalette::WindowText, Qt::red); qDebug() << p.isBrushSet(QPalette::Active, QPalette::WindowText) // -> true << p.isBrushSet(QPalette::Disabled, QPalette::WindowText) // -> true << p.isBrushSet(QPalette::Inactive, QPalette::WindowText); // -> true
2) QPalette::resolve also works wrong in the similar scenario.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-21922 Add a debug helper for QPalette
- Reported
-
QTBUG-92947 QPalette doesn't return the correct color when querying QPalette::PlaceholderText
- Reported
-
QTBUG-93635 Reg->6.0: Windows vista style: placeholderText has wrong color
- Closed
For Gerrit Dashboard: QTBUG-78544 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
277008,6 | Fix QPalette::isBrushSet | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
282367,4 | QPalette::setBrush: remove a workaround for PlaceholderText | dev | qt/qtbase | Status: MERGED | +2 | 0 |
282368,5 | Fix QPalette::isBrushSet | dev | qt/qtbase | Status: MERGED | +2 | 0 |
282369,4 | QPalette: fix debug stream operator | dev | qt/qtbase | Status: MERGED | +2 | 0 |
286957,2 | QPalette: fix function swap and move operator | dev | qt/qtbase | Status: MERGED | +2 | 0 |