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

qmlls: snippets completion for Quick

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.0 FF, 6.8
    • None
    • QML: Tooling
    • None
    • 4de69daf8 (dev), 6cdf8b829 (dev), b1f94cc4f (dev), 550d7a7b4 (dev)

      Propose code snippets for Quick related stuff in qmlls, just like QtC does.

      done

      in progress

      to be done

      wont do

      Here is the list of snippets from QtC:

      for 'property'

      property type name: value

      for 'states' but only inside of 'Item' or types inheriting from Item/QQuickItem.

      states: [
          State {
              name: "name"
              PropertyChanges {
                  target: object
              }
          }
      ]
      

      for 'transitions' but only inside of 'Item' or types inheriting from Item/QQuickItem.

      transitions: [
          Transition {
              from: "fromState"
              to: "toState"
          }
      ]
      

      for 'BorderImage'

      BorderImage {
          id: name
          source: "file"
          width: 100; height: 100
          border.left: 5; border.top: 5
          border.right: 5; border.bottom: 5
      }

      for 'ColorAnimation'

      ColorAnimation {
          from: "white"
          to: "black"
          duration: 200
      }

      for 'Image'

      Image {
          id: name
          source: "file"
      }

      for 'Item'

      Item {
          id: name
      }

      for 'NumberAnimation'

      NumberAnimation {
          target: object
          property: "name"
          duration: 200
          easing.type: Easing.InOutQuad
      }

      for 'NumberAnimation with targets'

      NumberAnimation {
          targets: [object]
          properties: "name"
          duration: 200
      }

      for 'PauseAnimation'

      PauseAnimation {
          duration: 200
      }

      for 'PropertyAction'

      PropertyAction {
          target: object; property: "name" }

      for 'PropertyAction with targets'

      PropertyAction {
          targets: [object]
          properties: "name"
      }

      for 'PropertyChanges'

      PropertyChanges {
          target: object
      }

      for 'State'

      State {
          name: "name"
          PropertyChanges {
              target: object
          }
      }

      for 'Text'

      Text {
          id: name
          text: qsTr("text")
      }

      for 'Transition'

      Transition {
          from: "fromState"
          to: "toState"
      }
      

       

       

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

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes