Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78544

QPalette resolve_mask doesn't contain color group data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.0
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Labels:
    • Platform/s:
      All

      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

        For Gerrit Dashboard: QTBUG-78544
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              vitaly.fanaskov Vitaly Fanaskov
              Reporter:
              vitaly.fanaskov Vitaly Fanaskov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are 3 open Gerrit changes