SHARE
TWEET

Untitled

a guest Aug 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef ROOT_H
  2. #define ROOT_H
  3.  
  4. #include <QObject>
  5.  
  6. #include "notesmanager.h"
  7.  
  8. namespace Core {
  9.     class Root : public QObject
  10.     {
  11.         Q_OBJECT
  12.  
  13.         Q_PROPERTY(NotesManager manager READ getManager)
  14.  
  15.     private:
  16.         NotesManager m_manager;
  17.  
  18.     public:
  19.         explicit Root();
  20.         NotesManager getManager() const;
  21.     };
  22. }
  23.  
  24. #endif // ROOT_H
  25.      
  26. #include "root.h"
  27.  
  28. using namespace Core;
  29.  
  30. Root::Root(){
  31.  
  32. }
  33.  
  34. NotesManager Root::getManager() const{
  35.     return m_manager; // error
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top