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

two issues: auto format doing incorrectly and stackview push can't work with more params

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.12.0
    • Qt Script
    • None

    Description

       

      There are two issues I met, let me first show my code snippet: 

          Loader {
              id: qtPageLoader
              active: true
              visible: true
              source: "../pages/QtPage.qml"
          }
      
          function pushQtPage() {
              navPane.push({item: qtPageLoader.item, destroyOnPop: true})
          }
      

      Issue#1, when I enable Projects->Manage Kits... -> Qt Quick -> enable autoformat, when saving files it always padding the push with quotation mark as :     

                          "item": qtPageLoader.item,

                          "destroyOnPop": true

       

      Issue#2, I have to disable aoto format, manually remove quotation mark, then running into error:     

                  push: nothing to push

      Only this could work:  navPane.push(qtPageLoader.item)

       

      Thanks 

       

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            ajee ajee cai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes