mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 11:17:39 +08:00
update
This commit is contained in:
parent
e5668869b9
commit
6da8117056
@ -152,7 +152,6 @@ void FluFrameless::componentComplete(){
|
|||||||
_window->setFlag(Qt::FramelessWindowHint,true);
|
_window->setFlag(Qt::FramelessWindowHint,true);
|
||||||
_window->installEventFilter(this);
|
_window->installEventFilter(this);
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
qDebug()<<"---------";
|
|
||||||
_nativeEvent =new FramelessEventFilter(_window);
|
_nativeEvent =new FramelessEventFilter(_window);
|
||||||
qApp->installNativeEventFilter(_nativeEvent);
|
qApp->installNativeEventFilter(_nativeEvent);
|
||||||
HWND hWnd = reinterpret_cast<HWND>(_window->winId());
|
HWND hWnd = reinterpret_cast<HWND>(_window->winId());
|
||||||
|
@ -161,7 +161,7 @@ void FluentUI::registerTypes(const char *uri){
|
|||||||
void FluentUI::initializeEngine(QQmlEngine *engine, const char *uri){
|
void FluentUI::initializeEngine(QQmlEngine *engine, const char *uri){
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QFont font;
|
QFont font;
|
||||||
font.setFamily("Microsoft YaHei UI");
|
font.setFamily("微软雅黑");
|
||||||
QGuiApplication::setFont(font);
|
QGuiApplication::setFont(font);
|
||||||
#endif
|
#endif
|
||||||
FluApp* app = FluApp::getInstance();
|
FluApp* app = FluApp::getInstance();
|
||||||
|
Loading…
Reference in New Issue
Block a user