Advertisement
Guest User

Untitled

a guest
Feb 18th, 2011
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #ifndef PLUGIN_TEST_PLUGIN_H
  2. #define PLUGIN_TEST_PLUGIN_H
  3.  
  4. #include <QtDeclarative/QDeclarativeExtensionPlugin>
  5. #include <QtDeclarative/QDeclarativeItem>
  6.  
  7. class A : public QDeclarativeItem
  8. {
  9.     Q_OBJECT
  10.  
  11.  
  12. public:
  13.     A(QDeclarativeItem *parent = 0);
  14.     Q_INVOKABLE void printThis();
  15. };
  16.  
  17. QML_DECLARE_TYPE(A)
  18.  
  19. class B : public QDeclarativeItem
  20. {
  21.     Q_OBJECT
  22.  
  23.  
  24. public:
  25.     B(QDeclarativeItem *parent = 0);
  26.     Q_INVOKABLE void printThis();
  27.     Q_INVOKABLE void printA(A* p_a);
  28. };
  29.  
  30. QML_DECLARE_TYPE(B)
  31.  
  32. class plugin_testPlugin : public QDeclarativeExtensionPlugin
  33. {
  34.     Q_OBJECT
  35.  
  36. public:
  37.     void registerTypes(const char *uri);
  38. };
  39.  
  40. #endif // PLUGIN_TEST_PLUGIN_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement