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

Missing end brace in Menu QML Type example

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.6.0
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Ubuntu 14.04, Qt5.5.1
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-51715
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            treinio Topi Reiniƶ
            Reporter:
            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