Apply clang-format and cmake-format
This commit is contained in:
parent
f6096f7232
commit
0791964c6f
|
@ -151,7 +151,9 @@ elseif (QT_PACKAGE_PREFIX MATCHES ".*Qt([0-9]+).*")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# require Qt 6 for the Qt Quick GUI
|
# 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).")
|
message(FATAL_ERROR "The Qt Quick GUI is only compatible with Qt 6 (but Qt ${MAJOR_QT_VERSION} was found).")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
|
@ -340,7 +340,8 @@ bool FieldModel::moveRows(const QModelIndex &sourceParent, int sourceRow, int co
|
||||||
|
|
||||||
// begin the move
|
// begin the move
|
||||||
// note: When moving rows down (destinationChild > sourceRow) the third param is still counted in the initial array!
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue