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

Add a MouseArea property containing `pressed && containsMouse`

    XMLWordPrintable

Details

    • 112efda64ba24e7d9255a36065223e9800a50c21

    Description

      There is a lot of instances of:

      MouseArea {
          property bool highlighted: pressed && containsMouse
      }
      

      which could be simplified and optimized by providing a property equivalent to `pressed && containsMouse`, perhaps named `containsPress`

      Attachments

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

        Activity

          People

            martinj Martin Jones
            martinj Martin Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes