split project with app & doric module
This commit is contained in:
27
doric-Qt/example/doric/DoricPanel.h
Normal file
27
doric-Qt/example/doric/DoricPanel.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef PANEL_H
|
||||
#define PANEL_H
|
||||
|
||||
#include <QQuickItem>
|
||||
|
||||
#include "DoricContext.h"
|
||||
|
||||
class DoricPanel {
|
||||
private:
|
||||
DoricContext *mContext;
|
||||
int renderedWidth = -1;
|
||||
int renderedHeight = -1;
|
||||
|
||||
QQmlEngine *mQmlEngine;
|
||||
QQuickItem *mQuickItem;
|
||||
|
||||
public:
|
||||
DoricPanel(QQmlEngine *qmlEngine, QQuickItem *quickItem);
|
||||
|
||||
~DoricPanel();
|
||||
|
||||
void config(QString script, QString alias, QString extra);
|
||||
|
||||
void config(DoricContext *context);
|
||||
};
|
||||
|
||||
#endif // PANEL_H
|
||||
Reference in New Issue
Block a user