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

QPalette resolve_mask doesn't contain color group data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.13.0
    • GUI: Painting
    • All
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vitaly.fanaskov Vitaly Fanaskov
              vitaly.fanaskov Vitaly Fanaskov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes