This commit is contained in:
朱子楚\zhuzi 2023-10-08 19:59:55 +08:00
parent 1d68de9287
commit 17829bac69
4 changed files with 6 additions and 27 deletions

View File

@ -8,7 +8,6 @@ list(APPEND CMAKE_MODULE_PATH ${FLUENTUI_DIRECTORY}/.cmake/)
include(GetGitRevisionDescription)
option(FLUENTUI_BUILD_EXAMPLES "Build FluentUI demo applications." ON)
option(FLUENTUI_BUILD_FRAMELESSHEPLER "Build FramelessHelper." ON)
option(FLUENTUI_BUILD_STATIC_LIB "Build static library." OFF)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
@ -32,15 +31,12 @@ if (FLUENTUI_BUILD_EXAMPLES)
add_subdirectory(example)
endif ()
if (FLUENTUI_BUILD_FRAMELESSHEPLER)
set(FRAMELESSHELPER_BUILD_STATIC ON)
set(FRAMELESSHELPER_NO_DEBUG_OUTPUT ON)
set(FRAMELESSHELPER_BUILD_WIDGETS OFF)
add_subdirectory(framelesshelper)
endif ()
set(FRAMELESSHELPER_BUILD_STATIC ON)
set(FRAMELESSHELPER_NO_DEBUG_OUTPUT ON)
set(FRAMELESSHELPER_BUILD_WIDGETS OFF)
add_subdirectory(framelesshelper)
message("------------------------ FluentUI ------------------------")
message("Build FluentUI demo applications.: ${FLUENTUI_BUILD_EXAMPLES}")
message("Build FramelessHelper.: ${FLUENTUI_BUILD_FRAMELESSHEPLER}")
message("Build static library.: ${FLUENTUI_BUILD_STATIC_LIB}")
message("Path to FluentUI plugin.: ${FLUENTUI_QML_PLUGIN_DIRECTORY}")

View File

@ -1,15 +0,0 @@
import QtQuick
import QtQuick.Layouts
import FluentUI
FluWindow {
id:window
property bool fixSize
property bool titleVisible: true
property bool appBarVisible: true
function setHitTestVisible(com){
}
function setTitleBarItem(com){
}
}

View File

@ -31,7 +31,6 @@ Window {
}
}
signal initArgument(var argument)
property bool showSystemAppBar: true
id:window
color:"transparent"
Component.onCompleted: {
@ -168,7 +167,7 @@ Window {
FramelessHelper{
id:framless_helper
onReady: {
if(appBar && !showSystemAppBar){
if(appBar){
var title_bar = loader_title_bar.item
setTitleBarItem(title_bar)
moveWindowToDesktopCenter()

View File

@ -30,7 +30,6 @@ Window {
}
}
signal initArgument(var argument)
property bool showSystemAppBar: true
id:window
color:"transparent"
Component.onCompleted: {
@ -167,7 +166,7 @@ Window {
FramelessHelper{
id:framless_helper
onReady: {
if(appBar && !showSystemAppBar){
if(appBar){
var title_bar = loader_title_bar.item
setTitleBarItem(title_bar)
moveWindowToDesktopCenter()