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

QQC2 Button lacks isDefault property from QQC1

    XMLWordPrintable

Details

    • All

    Description

      Nuff said, there is no more isDefault property in QtQuick.Controls 2 framework.

       

      I discovered this property while cleaning up org.kde.desktop QQC2 style implementation, and found this leftover:

       

           background: StylePrivate.StyleItem {
              // ...
              activeControl: controlRoot.isDefault ? "default" : ""
      

      The code still "works" without warnings because controlRoot.isDefault simply evaluates to undefined, and so the whole expression is always just an empty string.

      I didn't find any suitable replacement in the new API, so I consider this a regression.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              ratijas ivan tkachenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes