Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-693

Enumeration the properties of a qbs object in Product{}

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 1.9.0
    • 1.3.2
    • General
    • None
    • 8fe1989fdd0f147c5d89bd420772bf3fc6844a6b

    Description

      Usual javascript a design of enumeration doesn't work:

      Product {
         ...
         Depends { name: "cpp" }
         ...
      
          property var testEnumeration: {
              print("+++ testEnumeration ++++");
      
              print("product");
              print(this);
              for (var p in this) {
                 print(p);
              }
              print("");
      
              print("project");
              print(project);
              for (var p in project) {
                 // Here never we get...
                 print(p);
              }
              print("");
      
              print("cpp");
              print(cpp);
              for (var i in cpp) {
                 // Here never we get...
                 print(i);
              }
              print("");
      
              print("+++ testEnumeration +++");
          }
      
      }
      

      Attachments

        For Gerrit Dashboard: QBS-693
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            hkarel Karelin Pavel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes