Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="5.7.14"></a>
## 5.7.14 (2025-04-12)

### Bug Fixes

* resolve compilation failure on Qt 6.9

<a name="2.0.14"></a>
## 2.0.14 (2019-05-23)

Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dtkcore (5.7.14) unstable; urgency=medium

* fix: resolve compilation failure on Qt 6.9

-- JiDe Zhang <zhangjide@deepin.org> Sat, 12 Apr 2025 17:19:00 +0800

dtkcore (5.7.13) unstable; urgency=medium

* fix: add copyright for dconfig_org_deepin_dtk_preference.hpp
Expand Down
4 changes: 4 additions & 0 deletions include/util/dvtablehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ class LIBDTKCORESHARED_EXPORT DVtableHook
Q_STATIC_ASSERT_X((FunctorArgumentCount >= 0),
"Function1 and Function2 arguments are not compatible.");
const int Fun2ArgumentCount = (FunctorArgumentCount >= 0) ? FunctorArgumentCount : 0;
#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
typedef typename QtPrivate::FunctorReturnType<Fun2, typename QtPrivate::List_Left<typename FunctionPointer<Fun1>::Arguments, Fun2ArgumentCount>::Value>::type Fun2ReturnType;
#else
typedef typename QtPrivate::FunctorReturnType<Fun2, typename QtPrivate::List_Left<typename FunctionPointer<Fun1>::Arguments, Fun2ArgumentCount>::Value>::Value Fun2ReturnType;
#endif

Q_STATIC_ASSERT_X((QtPrivate::AreArgumentsCompatible<Fun2ReturnType, typename FunInfo1::ReturnType>::value),
"Function1 and Function2 return type are not compatible.");
Expand Down
2 changes: 1 addition & 1 deletion tools/dconfig2cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
static QString toUnicodeEscape(const QString& input) {
QString result;
for (QChar ch : input) {
result += QString("\\u%1").arg(ch.unicode(), 4, 16, QChar('0'));
result += QString("\\u%1").arg(static_cast<short>(ch.unicode()), 4, 16, QChar('0'));
}
return result;
}
Expand Down
Loading