a_qt.cpp 444 B

1234567891011121314151617181920212223242526272829
  1. #include "a_qt.hpp"
  2. #include <a_mc.hpp>
  3. namespace a_qt {
  4. /// @brief A source local QObject based class
  5. class Source_QObject : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. Source_QObject() {}
  10. ~Source_QObject() {}
  11. std::string str;
  12. };
  13. std::string mocs_compilation()
  14. {
  15. // Create and destroy QObject based classes
  16. Header_QObject header_obj;
  17. Source_QObject source_obj;
  18. return std::string(a_mc::mocs_compilation);
  19. }
  20. }
  21. #include "a_qt.moc"