Compare commits
2 Commits
8e1e8a9db5
...
0e4d81c7c8
Author | SHA1 | Date |
---|---|---|
|
0e4d81c7c8 | |
|
4a03ad4227 |
|
@ -1,27 +1,7 @@
|
||||||
#
|
|
||||||
# Internal file for GetGitRevisionDescription.cmake
|
|
||||||
#
|
|
||||||
# Requires CMake 2.6 or newer (uses the 'function' command)
|
|
||||||
#
|
|
||||||
# Original Author:
|
|
||||||
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
|
|
||||||
# http://academic.cleardefinition.com
|
|
||||||
# Iowa State University HCI Graduate Program/VRAC
|
|
||||||
#
|
|
||||||
# Copyright 2009-2012, Iowa State University
|
|
||||||
# Copyright 2011-2015, Contributors
|
|
||||||
# Distributed under the Boost Software License, Version 1.0.
|
|
||||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
# http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
# SPDX-License-Identifier: BSL-1.0
|
|
||||||
|
|
||||||
set(HEAD_HASH)
|
set(HEAD_HASH)
|
||||||
|
|
||||||
file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024)
|
file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024)
|
||||||
|
|
||||||
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
||||||
if(HEAD_CONTENTS MATCHES "ref")
|
if(HEAD_CONTENTS MATCHES "ref")
|
||||||
# named branch
|
|
||||||
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
|
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
|
||||||
if(EXISTS "@GIT_DIR@/${HEAD_REF}")
|
if(EXISTS "@GIT_DIR@/${HEAD_REF}")
|
||||||
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
|
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
|
||||||
|
@ -33,10 +13,8 @@ if(HEAD_CONTENTS MATCHES "ref")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
# detached HEAD
|
|
||||||
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
|
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT HEAD_HASH)
|
if(NOT HEAD_HASH)
|
||||||
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
|
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
|
||||||
string(STRIP "${HEAD_HASH}" HEAD_HASH)
|
string(STRIP "${HEAD_HASH}" HEAD_HASH)
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <FramelessHelper/Quick/framelessquickmodule.h>
|
#include <FramelessHelper/Quick/framelessquickmodule.h>
|
||||||
#include <FramelessHelper/Core/private/framelessconfig_p.h>
|
#include <FramelessHelper/Core/private/framelessconfig_p.h>
|
||||||
#include <QtQml/qqmlextensionplugin.h>
|
#include <QtQml/qqmlextensionplugin.h>
|
||||||
|
#include <QLoggingCategory>
|
||||||
#include "AppInfo.h"
|
#include "AppInfo.h"
|
||||||
#include "src/component/CircularReveal.h"
|
#include "src/component/CircularReveal.h"
|
||||||
#include "src/component/FileWatcher.h"
|
#include "src/component/FileWatcher.h"
|
||||||
|
@ -47,6 +48,8 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
QGuiApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
|
// QLoggingCategory::setFilterRules(QStringLiteral("qt.scenegraph.general=true"));
|
||||||
|
// qSetMessagePattern("%{category}: %{message}");
|
||||||
FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial);
|
FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial);
|
||||||
FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow);
|
FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow);
|
||||||
FramelessConfig::instance()->set(Global::Option::ForceNonNativeBackgroundBlur);
|
FramelessConfig::instance()->set(Global::Option::ForceNonNativeBackgroundBlur);
|
||||||
|
|
|
@ -68,7 +68,6 @@ Button {
|
||||||
iconSource: control.iconSource
|
iconSource: control.iconSource
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component{
|
Component{
|
||||||
id:com_row
|
id:com_row
|
||||||
RowLayout{
|
RowLayout{
|
||||||
|
@ -82,23 +81,8 @@ Button {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
visible: display !== Button.IconOnly
|
visible: display !== Button.IconOnly
|
||||||
}
|
}
|
||||||
FluTooltip{
|
|
||||||
id:tool_tip
|
|
||||||
visible: {
|
|
||||||
if(control.text === ""){
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if(control.display !== Button.IconOnly){
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return hovered
|
|
||||||
}
|
|
||||||
text:control.text
|
|
||||||
delay: 1000
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Component{
|
Component{
|
||||||
id:com_column
|
id:com_column
|
||||||
ColumnLayout{
|
ColumnLayout{
|
||||||
|
@ -112,6 +96,16 @@ Button {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
visible: display !== Button.IconOnly
|
visible: display !== Button.IconOnly
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
contentItem:Loader{
|
||||||
|
sourceComponent: {
|
||||||
|
if(display === Button.TextUnderIcon){
|
||||||
|
return com_column
|
||||||
|
}
|
||||||
|
return com_row
|
||||||
|
}
|
||||||
|
}
|
||||||
FluTooltip{
|
FluTooltip{
|
||||||
id:tool_tip
|
id:tool_tip
|
||||||
visible: {
|
visible: {
|
||||||
|
@ -127,14 +121,3 @@ Button {
|
||||||
delay: 1000
|
delay: 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
contentItem:Loader{
|
|
||||||
sourceComponent: {
|
|
||||||
if(display === Button.TextUnderIcon){
|
|
||||||
return com_column
|
|
||||||
}
|
|
||||||
return com_row
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -69,7 +69,6 @@ Button {
|
||||||
iconSource: control.iconSource
|
iconSource: control.iconSource
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component{
|
Component{
|
||||||
id:com_row
|
id:com_row
|
||||||
RowLayout{
|
RowLayout{
|
||||||
|
@ -83,23 +82,8 @@ Button {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
visible: display !== Button.IconOnly
|
visible: display !== Button.IconOnly
|
||||||
}
|
}
|
||||||
FluTooltip{
|
|
||||||
id:tool_tip
|
|
||||||
visible: {
|
|
||||||
if(control.text === ""){
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if(control.display !== Button.IconOnly){
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return hovered
|
|
||||||
}
|
|
||||||
text:control.text
|
|
||||||
delay: 1000
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Component{
|
Component{
|
||||||
id:com_column
|
id:com_column
|
||||||
ColumnLayout{
|
ColumnLayout{
|
||||||
|
@ -113,6 +97,16 @@ Button {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
visible: display !== Button.IconOnly
|
visible: display !== Button.IconOnly
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
contentItem:Loader{
|
||||||
|
sourceComponent: {
|
||||||
|
if(display === Button.TextUnderIcon){
|
||||||
|
return com_column
|
||||||
|
}
|
||||||
|
return com_row
|
||||||
|
}
|
||||||
|
}
|
||||||
FluTooltip{
|
FluTooltip{
|
||||||
id:tool_tip
|
id:tool_tip
|
||||||
visible: {
|
visible: {
|
||||||
|
@ -128,14 +122,3 @@ Button {
|
||||||
delay: 1000
|
delay: 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
contentItem:Loader{
|
|
||||||
sourceComponent: {
|
|
||||||
if(display === Button.TextUnderIcon){
|
|
||||||
return com_column
|
|
||||||
}
|
|
||||||
return com_row
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue