fix issues found by ci

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-10-18 17:03:28 +08:00
parent eb43a60094
commit 439a5d569b
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function(setup_compile_params arg_target)
#QT_NO_KEYWORDS # Some QtQuick private headers still use the traditional Qt keywords. Fixed by me since 6.4. #QT_NO_KEYWORDS # Some QtQuick private headers still use the traditional Qt keywords. Fixed by me since 6.4.
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
QT_NO_FOREACH QT_NO_FOREACH
QT_TYPESAFE_FLAGS #QT_TYPESAFE_FLAGS # QtQuick private headers prevent us from enabling this flag.
QT_USE_QSTRINGBUILDER QT_USE_QSTRINGBUILDER
QT_USE_FAST_OPERATOR_PLUS QT_USE_FAST_OPERATOR_PLUS
QT_DEPRECATED_WARNINGS # Have no effect since 6.0 QT_DEPRECATED_WARNINGS # Have no effect since 6.0

View File

@ -180,7 +180,7 @@ void StandardTitleBarPrivate::paintTitleBar(QPaintEvent *event)
const int height = q->height(); const int height = q->height();
return {QPoint(x, y), QSize(width, height)}; return {QPoint(x, y), QSize(width, height)};
}(); }();
painter.drawText(rect, m_labelAlignment, text); painter.drawText(rect, int(m_labelAlignment), text);
} }
} }
painter.restore(); painter.restore();