Compare commits
No commits in common. "9ee50a585ae625bc3426e7acfe628894462e16c7" and "5787e308ddb32e2340bcfb157e1132659c42b520" have entirely different histories.
9ee50a585a
...
5787e308dd
|
@ -3,9 +3,10 @@ cmake_minimum_required(VERSION 3.20)
|
||||||
project(example VERSION 1.0)
|
project(example VERSION 1.0)
|
||||||
|
|
||||||
#配置通用编译
|
#配置通用编译
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
#导入exmaple的QML位置,不然import example有时候会爆红
|
#导入exmaple的QML位置,不然import example有时候会爆红
|
||||||
set(QML_IMPORT_PATH ${CMAKE_BINARY_DIR}/example CACHE STRING "Qt Creator extra QML import paths" FORCE)
|
set(QML_IMPORT_PATH ${CMAKE_BINARY_DIR}/example CACHE STRING "Qt Creator extra QML import paths" FORCE)
|
||||||
|
|
|
@ -42,16 +42,8 @@ FluWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
onFirstVisible: {
|
onFirstVisible: {
|
||||||
timer_tour_delay.restart()
|
|
||||||
}
|
|
||||||
|
|
||||||
Timer{
|
|
||||||
id:timer_tour_delay
|
|
||||||
interval: 200
|
|
||||||
onTriggered: {
|
|
||||||
tour.open()
|
tour.open()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
checkUpdate(true)
|
checkUpdate(true)
|
||||||
|
|
|
@ -45,16 +45,8 @@ FluWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
onFirstVisible: {
|
onFirstVisible: {
|
||||||
timer_tour_delay.restart()
|
|
||||||
}
|
|
||||||
|
|
||||||
Timer{
|
|
||||||
id:timer_tour_delay
|
|
||||||
interval: 200
|
|
||||||
onTriggered: {
|
|
||||||
tour.open()
|
tour.open()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
checkUpdate(true)
|
checkUpdate(true)
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QRegularExpression>
|
|
||||||
#include "Version.h"
|
#include "Version.h"
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
|
|
@ -7,9 +7,10 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#配置通用编译
|
#配置通用编译
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (FLUENTUI_BUILD_STATIC_LIB)
|
if (FLUENTUI_BUILD_STATIC_LIB)
|
||||||
add_definitions(-DFLUENTUI_BUILD_STATIC_LIB)
|
add_definitions(-DFLUENTUI_BUILD_STATIC_LIB)
|
||||||
|
|
|
@ -34,18 +34,11 @@ Rectangle{
|
||||||
property bool isMac: FluTools.isMacos()
|
property bool isMac: FluTools.isMacos()
|
||||||
property color borerlessColor : FluTheme.primaryColor
|
property color borerlessColor : FluTheme.primaryColor
|
||||||
property var maxClickListener : function(){
|
property var maxClickListener : function(){
|
||||||
if(FluTools.isMacos()){
|
|
||||||
if (d.win.visibility === Window.FullScreen)
|
|
||||||
d.win.visibility = Window.Windowed
|
|
||||||
else
|
|
||||||
d.win.visibility = Window.FullScreen
|
|
||||||
}else{
|
|
||||||
if (d.win.visibility === Window.Maximized)
|
if (d.win.visibility === Window.Maximized)
|
||||||
d.win.visibility = Window.Windowed
|
d.win.visibility = Window.Windowed
|
||||||
else
|
else
|
||||||
d.win.visibility = Window.Maximized
|
d.win.visibility = Window.Maximized
|
||||||
}
|
}
|
||||||
}
|
|
||||||
property var minClickListener: function(){
|
property var minClickListener: function(){
|
||||||
d.win.visibility = Window.Minimized
|
d.win.visibility = Window.Minimized
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,18 +34,11 @@ Rectangle{
|
||||||
property bool isMac: FluTools.isMacos()
|
property bool isMac: FluTools.isMacos()
|
||||||
property color borerlessColor : FluTheme.primaryColor
|
property color borerlessColor : FluTheme.primaryColor
|
||||||
property var maxClickListener : function(){
|
property var maxClickListener : function(){
|
||||||
if(FluTools.isMacos()){
|
|
||||||
if (d.win.visibility === Window.FullScreen)
|
|
||||||
d.win.visibility = Window.Windowed
|
|
||||||
else
|
|
||||||
d.win.visibility = Window.FullScreen
|
|
||||||
}else{
|
|
||||||
if (d.win.visibility === Window.Maximized)
|
if (d.win.visibility === Window.Maximized)
|
||||||
d.win.visibility = Window.Windowed
|
d.win.visibility = Window.Windowed
|
||||||
else
|
else
|
||||||
d.win.visibility = Window.Maximized
|
d.win.visibility = Window.Maximized
|
||||||
}
|
}
|
||||||
}
|
|
||||||
property var minClickListener: function(){
|
property var minClickListener: function(){
|
||||||
d.win.visibility = Window.Minimized
|
d.win.visibility = Window.Minimized
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue