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

Wrong slot names for events in Qt mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.8.0
    • 5.8.0 Alpha
    • XML: SCXML
    • None
    • 0933e6d71310178667cce1a60ac65c23a956eb34

    Description

      Our eventnames2.scxml in tests/auto/compiled generates this header:

      //
      // Statemachine code from reading SCXML file 'eventnames2.scxml'
      // Created by: The Qt SCXML Compiler version 1 (Qt 5.8.0)
      // WARNING! All changes made in this file will be lost!
      //
      
      #ifndef EVENTNAMES2_H
      #define EVENTNAMES2_H
      
      #include <QScxmlStateMachine>
      #include <QString>
      #include <QByteArray>
      
      class eventnames2: public QScxmlStateMachine
      {
      public:
          /* qmake ignore Q_OBJECT */
          Q_OBJECT
          Q_PROPERTY(bool a READ a NOTIFY aChanged)
      
      public:
          eventnames2(QObject *parent = 0);
          ~eventnames2();
      
          bool a() const;
      
      protected:
          void setService(const QString &id, QScxmlInvokableService *service) Q_DECL_OVERRIDE Q_DECL_FINAL;
      
      signals:
          void aChanged(bool active);
      
      public slots:
          void also(const QVariant &eventData = QVariant());
          void valid(const QVariant &eventData = QVariant());
      
      private:
          struct Data;
          friend struct Data;
          struct Data *data;
      };
      
      Q_DECLARE_METATYPE(::eventnames2*);
      
      #endif // EVENTNAMES2_H
      

      Obviously the slot names are not what any sane user would expect.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes