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

qt_reps_from_headers generate wrong REP

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5
    • Remote Objects
    • None

    Description

      Two issues:

      1. enum defined in the header won't be recognized.
            enum MyEnum {
                Foo = 0,
                Bar = 1,
            };
            Q_ENUM(MyEnum) 
      2. signal generates a return type, which cannot be recognized by qt_add_repc_sources
        for example 
        void sayHello(QString name);
        generate 
        SIGNAL(void sayHello(QString name)); // WRONG
        SIGNAL(sayHello(QString name)); // RIGHT

      please see the attached example
       

       

       

      Attachments

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

        Activity

          People

            bstottle Brett Stottlemyer
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes