forked from github_mirror/framelesshelper
minor tweaks
Signed-off-by: Yuhang Zhao <zhaoyuhang@rankyee.com>
This commit is contained in:
parent
3b8571401f
commit
8930ea128f
|
@ -160,25 +160,15 @@ if(NOT FRAMELESSHELPER_NO_SUMMARY)
|
||||||
message("Prefix paths: ${CMAKE_PREFIX_PATH}")
|
message("Prefix paths: ${CMAKE_PREFIX_PATH}")
|
||||||
message("Toolchain file: ${CMAKE_TOOLCHAIN_FILE}")
|
message("Toolchain file: ${CMAKE_TOOLCHAIN_FILE}")
|
||||||
message("------------------------------ Qt -------------------------------")
|
message("------------------------------ Qt -------------------------------")
|
||||||
set(__qt_inst_dir)
|
query_qt_paths(SDK_DIR __qt_inst_dir)
|
||||||
if(DEFINED Qt6_DIR)
|
|
||||||
set(__qt_inst_dir "${Qt6_DIR}")
|
|
||||||
else()
|
|
||||||
set(__qt_inst_dir "${Qt5_DIR}")
|
|
||||||
endif()
|
|
||||||
# /whatever/Qt/6.4.0/gcc_64/lib/cmake/Qt6
|
|
||||||
cmake_path(GET __qt_inst_dir PARENT_PATH __qt_inst_dir)
|
|
||||||
cmake_path(GET __qt_inst_dir PARENT_PATH __qt_inst_dir)
|
|
||||||
cmake_path(GET __qt_inst_dir PARENT_PATH __qt_inst_dir)
|
|
||||||
message("Qt SDK installation directory: ${__qt_inst_dir}")
|
message("Qt SDK installation directory: ${__qt_inst_dir}")
|
||||||
message("Qt SDK version: ${QT_VERSION}")
|
message("Qt SDK version: ${QT_VERSION}")
|
||||||
get_target_property(__qt_type Qt${QT_VERSION_MAJOR}::Core TYPE)
|
query_qt_library_info(STATIC __qt_lib_type)
|
||||||
if(__qt_type STREQUAL "STATIC_LIBRARY")
|
if(__qt_lib_type)
|
||||||
set(__qt_type static)
|
message("Qt SDK library type: static")
|
||||||
else()
|
else()
|
||||||
set(__qt_type shared)
|
message("Qt SDK library type: shared")
|
||||||
endif()
|
endif()
|
||||||
message("Qt SDK library type: ${__qt_type}")
|
|
||||||
message("------------------------ FramelessHelper ------------------------")
|
message("------------------------ FramelessHelper ------------------------")
|
||||||
message("FramelessHelper version: ${PROJECT_VERSION}")
|
message("FramelessHelper version: ${PROJECT_VERSION}")
|
||||||
message("FramelessHelper commit hash: ${PROJECT_VERSION_COMMIT}")
|
message("FramelessHelper commit hash: ${PROJECT_VERSION_COMMIT}")
|
||||||
|
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit 5b496224b13f31a5cc07cb48b56aed8d5e7e29de
|
Subproject commit 60329b55dcfaf41da63f134a90ddce82dc9b6c4a
|
|
@ -114,7 +114,7 @@ Q_GLOBAL_STATIC(Win32Helper, g_win32Helper)
|
||||||
{
|
{
|
||||||
// NULL handle is allowed here.
|
// NULL handle is allowed here.
|
||||||
return FRAMELESSHELPER_STRING_LITERAL("0x")
|
return FRAMELESSHELPER_STRING_LITERAL("0x")
|
||||||
+ QString::number(windowId, 16).toUpper();
|
+ QString::number(windowId, 16).toUpper().rightJustified(8, u'0');
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] static inline QString hwnd2str(const HWND hwnd)
|
[[nodiscard]] static inline QString hwnd2str(const HWND hwnd)
|
||||||
|
|
Loading…
Reference in New Issue