Skip to content

Commit decbf72

Browse files
18202781743deepin-bot[bot]
authored andcommitted
fix: build failed in qt5
Changed Q_GLOBAL_STATIC to Q_GLOBAL_STATIC_WITH_ARGS for OrgDeepinDTKPreference initialization This modification provides better type safety and clearer syntax for the complex initialization parameters The change maintains the same functionality while following Qt's recommended practices for static initialization refactor: 更新 DConfig 初始化语法 将 Q_GLOBAL_STATIC 改为 Q_GLOBAL_STATIC_WITH_ARGS 用于 OrgDeepinDTKPreference 初始化 此修改为复杂的初始化参数提供了更好的类型安全性和更清晰的语法 该变更保持了相同的功能,同时遵循 Qt 推荐的静态初始化实践
1 parent 7c2b35a commit decbf72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/kernel/dguiapplicationhelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ Q_GLOBAL_STATIC(DFontManager, _globalFM)
119119
#define WINDOW_THEME_KEY "_d_platform_theme"
120120

121121
#define DTK_ANIMATIONS_ENV "D_DTK_DISABLE_ANIMATIONS"
122-
Q_GLOBAL_STATIC(OrgDeepinDTKPreference, _d_dconfig, DTK_CORE_NAMESPACE::DConfig::globalThread(), nullptr,
123-
"org.deepin.dtk.preference", DTK_CORE_NAMESPACE::DSGApplication::id(), {}, false, nullptr)
122+
Q_GLOBAL_STATIC_WITH_ARGS(OrgDeepinDTKPreference, _d_dconfig, (DTK_CORE_NAMESPACE::DConfig::globalThread(), nullptr,
123+
"org.deepin.dtk.preference", DTK_CORE_NAMESPACE::DSGApplication::id(), {}, false, nullptr))
124124

125125
/*!
126126
@private

0 commit comments

Comments
 (0)