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

Missing end brace in Menu QML Type example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.6.0
    • 5.5.1
    • Documentation
    • None
    • Ubuntu 14.04, Qt5.5.1
    • 137883f5 (qtquickcontrols)

      In this page , in the second example, there is a missing close brace.

      Menu {
          id: recentFilesMenu
      
          Instantiator {
              model: recentFilesModel
              MenuItem {
                  text: model.fileName
              }
              onObjectAdded: recentFilesMenu.insertItem(index, object)
              onObjectRemoved: recentFilesMenu.removeItem(object)
          }
      
          MenuSeparator {
              visible: recentFilesModel.count > 0
          }
      
          MenuItem {
              text: "Clear menu"
              enabled: recentFilesModel.count > 0
              onTriggered: recentFilesModel.clear()
          }
      // <---- here
      

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

            treinio Topi Reiniƶ
            theshadowx Ali Diouri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes