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

Missing end brace in Menu QML Type example

    XMLWordPrintable

Details

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

    Description

      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
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes