Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.8.5, 5.2.0, 6.5.0
-
None
-
5
-
1ee7aa741 (dev)
-
Foundation Sprint 83
Description
Create a header file like
#ifndef FOO_H #define FOO_H #include <QObject> struct Foo : public QObject { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "org.cmake.Test.Foo") public: Foo(); signals: void mySignal(int in); private: static int foo(); }; struct Bar : public QObject { Q_OBJECT Q_CLASSINFO("D-Bus Interface", "org.cmake.Test.Bar") public: Bar(); signals: void barSignal(int in); }; #endif
Run qdbuscpp2xml on it to create an xml file.
Run qdbusxml2cpp on the xml file, passing the -c option. C++ files generated have two different classes defined with the same name (as specified with -c).
There should be sanity checking when using qdbusxml2cpp -c that there is only one interface.
There should be a recommendation that only one interface should be defined per file for input to qdbuscpp2xml.
Attachments
For Gerrit Dashboard: QTBUG-36405 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
480153,2 | qdbusxml2cpp: Fail if -c option is used with multiple interfaces | dev | qt/qtbase | Status: MERGED | +2 | 0 |