-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine whether to load the frameless library based on the QT version
- Loading branch information
Showing
30 changed files
with
9,655 additions
and
9,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CMake-Windows-Qt5.15 | ||
name: CMake-Windows-Qt5.15LTS | ||
|
||
on: [pull_request,push] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CMake-Windows-Qt6.2 | ||
name: CMake-Windows-Qt6.2LTS | ||
|
||
on: [pull_request,push] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
include($$PWD/common.pri) | ||
INCLUDEPATH += $$PWD/src/SARibbonBar | ||
DEPENDPATH += $$PWD/src/SARibbonBar | ||
# framelessHelper的引用路径 | ||
INCLUDEPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/include | ||
DEPENDPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/include | ||
INCLUDEPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/qmake/inc/core | ||
DEPENDPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/qmake/inc/core | ||
# 定义FRAMELESSHELPER_FEATURE_static_build为-1让frameless也作为库的一部分 | ||
DEFINES += FRAMELESSHELPER_FEATURE_static_build=-1 | ||
|
||
|
||
greaterThan(QT_MAJOR_VERSION, 4){ | ||
# 目前 frameless支持qt5.14,qt5.15,qt6.4+,除了上诉版本,都使用不了 | ||
greaterThan(QT_MINOR_VERSION, 13){ | ||
SA_RIBBON_CONFIG += use_frameless | ||
} | ||
}else{ | ||
# Qt6,qt6.4+可使用frameless | ||
greaterThan(QT_MAJOR_VERSION, 5){ | ||
greaterThan(QT_MINOR_VERSION, 3){ | ||
SA_RIBBON_CONFIG += use_frameless | ||
} | ||
} | ||
} | ||
|
||
contains( SA_RIBBON_CONFIG, use_frameless ) { | ||
!contains(CONFIG,C++17){ | ||
CONFIG += c++17 | ||
} | ||
# framelessHelper的引用路径 | ||
INCLUDEPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/include | ||
DEPENDPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/include | ||
INCLUDEPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/qmake/inc/core | ||
DEPENDPATH += $$PWD/src/SARibbonBar/3rdparty/framelesshelper/qmake/inc/core | ||
# 定义FRAMELESSHELPER_FEATURE_static_build为-1让frameless也作为库的一部分 | ||
DEFINES += FRAMELESSHELPER_FEATURE_static_build=-1 | ||
# 定义SARIBBON_USE_3RDPARTY_FRAMELESSHELPER为1 | ||
DEFINES += SARIBBON_USE_3RDPARTY_FRAMELESSHELPER=1 | ||
}else{ | ||
DEFINES += SARIBBON_USE_3RDPARTY_FRAMELESSHELPER=0 | ||
} | ||
LIBS += -L$${SARIBBON_BIN_DIR} -l$${SARIBBON_LIB_NAME} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.