fix issues found by ci
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
eb43a60094
commit
439a5d569b
|
@ -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_NARROWING_CONVERSIONS_IN_CONNECT
|
||||
QT_NO_FOREACH
|
||||
QT_TYPESAFE_FLAGS
|
||||
#QT_TYPESAFE_FLAGS # QtQuick private headers prevent us from enabling this flag.
|
||||
QT_USE_QSTRINGBUILDER
|
||||
QT_USE_FAST_OPERATOR_PLUS
|
||||
QT_DEPRECATED_WARNINGS # Have no effect since 6.0
|
||||
|
|
|
@ -180,7 +180,7 @@ void StandardTitleBarPrivate::paintTitleBar(QPaintEvent *event)
|
|||
const int height = q->height();
|
||||
return {QPoint(x, y), QSize(width, height)};
|
||||
}();
|
||||
painter.drawText(rect, m_labelAlignment, text);
|
||||
painter.drawText(rect, int(m_labelAlignment), text);
|
||||
}
|
||||
}
|
||||
painter.restore();
|
||||
|
|
Loading…
Reference in New Issue