This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/utils/DoricContextHolder.h

21 lines
392 B
C
Raw Normal View History

2021-02-05 18:12:25 +08:00
#ifndef DORICCONTEXTHOLDER_H
#define DORICCONTEXTHOLDER_H
2021-05-18 16:15:28 +08:00
#include "DoricExport.h"
2021-02-05 18:12:25 +08:00
#include "../DoricContext.h"
2021-05-18 16:15:28 +08:00
class DORIC_EXPORT DoricContextHolder : public QObject {
2021-02-05 18:12:25 +08:00
protected:
DoricContext *mContext = NULL;
public:
explicit DoricContextHolder(QObject *parent = nullptr);
void setContext(DoricContext *context);
DoricContext *getContext();
};
#endif // DORICCONTEXTHOLDER_H