b_qt.cpp 446 B

1234567891011121314151617181920212223242526272829
  1. #include "b_qt.hpp"
  2. #include <b_mc.hpp>
  3. namespace b_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(b_mc::mocs_compilation());
  19. }
  20. }
  21. #include "b_qt.moc"