Apply clang-format and cmake-format

This commit is contained in:
Martchus 2024-03-25 18:33:27 +01:00
parent f6096f7232
commit 0791964c6f
2 changed files with 5 additions and 2 deletions

View File

@ -151,7 +151,9 @@ elseif (QT_PACKAGE_PREFIX MATCHES ".*Qt([0-9]+).*")
endif ()
# require Qt 6 for the Qt Quick GUI
if (QUICK_GUI AND MAJOR_QT_VERSION VERSION_LESS 6 OR MAJOR_QT_VERSION VERSION_GREATER_EQUAL 7)
if (QUICK_GUI
AND MAJOR_QT_VERSION VERSION_LESS 6
OR MAJOR_QT_VERSION VERSION_GREATER_EQUAL 7)
message(FATAL_ERROR "The Qt Quick GUI is only compatible with Qt 6 (but Qt ${MAJOR_QT_VERSION} was found).")
endif ()

View File

@ -340,7 +340,8 @@ bool FieldModel::moveRows(const QModelIndex &sourceParent, int sourceRow, int co
// begin the move
// note: When moving rows down (destinationChild > sourceRow) the third param is still counted in the initial array!
if (!beginMoveRows(sourceParent, sourceRow, sourceRow + count - 1, destinationParent, destinationChild > sourceRow ? destinationChild + count : destinationChild)) {
if (!beginMoveRows(sourceParent, sourceRow, sourceRow + count - 1, destinationParent,
destinationChild > sourceRow ? destinationChild + count : destinationChild)) {
return false;
}