mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-02 08:05:29 +08:00
update
This commit is contained in:
@ -54,7 +54,7 @@ qt_add_qml_module(fluentuiplugin
|
||||
URI "FluentUI"
|
||||
SOURCES ${sources_files} fluentui.rc
|
||||
QML_FILES ${qml_files}
|
||||
RESOURCES ${resource_files}
|
||||
RESOURCES ${resource_files} FluGlobal.h
|
||||
#支持designer
|
||||
DESIGNER_SUPPORTED
|
||||
)
|
||||
|
17
src/FluGlobal.cpp
Normal file
17
src/FluGlobal.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "FluGlobal.h"
|
||||
|
||||
#include<QDebug>
|
||||
|
||||
namespace FluentUI {
|
||||
|
||||
void preInit(){
|
||||
qDebug()<<"preInit";
|
||||
}
|
||||
void postInit(){
|
||||
qDebug()<<"postInit";
|
||||
}
|
||||
void initEngine(QQmlApplicationEngine* engine){
|
||||
qDebug()<<"initEngine";
|
||||
}
|
||||
|
||||
}
|
13
src/FluGlobal.h
Normal file
13
src/FluGlobal.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef FLUGLOBAL_H
|
||||
#define FLUGLOBAL_H
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QQmlApplicationEngine>
|
||||
|
||||
namespace FluentUI {
|
||||
Q_DECL_EXPORT void preInit();
|
||||
Q_DECL_EXPORT void postInit();
|
||||
Q_DECL_EXPORT void initEngine(QQmlApplicationEngine* engine);
|
||||
}
|
||||
|
||||
#endif // FLUGLOBAL_H
|
Reference in New Issue
Block a user