Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed Apr 5, 2024
2 parents a6a55e1 + 9db0764 commit ee8505f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cmake/ECM/modules/ECMFindModuleHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ The following variables will be set:
Since pre-1.0.0.
#]=======================================================================]

include(CMakeParseArguments)

macro(ecm_find_package_version_check module_name)
if(CMAKE_VERSION VERSION_LESS 3.16.0)
message(FATAL_ERROR "CMake 3.16.0 is required by Find${module_name}.cmake")
Expand Down
9 changes: 8 additions & 1 deletion cmake/ECM/modules/QtVersionOption.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ that is, if the major Qt version has not yet been determined otherwise
This module is typically included by other modules requiring knowledge
about the major Qt version.
If the ECM version passed to find_package was at least 5.240.0 Qt6 is picked by default.
Otherwise Qt5 is picked.
``QT_MAJOR_VERSION`` is defined to either be "5" or "6".
Since 5.82.0.
Expand All @@ -26,7 +29,11 @@ if (TARGET Qt5::Core)
elseif (TARGET Qt6::Core)
set(QT_MAJOR_VERSION 6)
else()
option(BUILD_WITH_QT6 "Build against Qt 6" OFF)
if (ECM_GLOBAL_FIND_VERSION VERSION_GREATER_EQUAL 5.240)
option(BUILD_WITH_QT6 "Build against Qt 6" ON)
else()
option(BUILD_WITH_QT6 "Build against Qt 6" OFF)
endif()

if (BUILD_WITH_QT6)
set(QT_MAJOR_VERSION 6)
Expand Down
2 changes: 1 addition & 1 deletion cmake/KDAB/modules/KDQtInstallPaths.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# SPDX-FileCopyrightText: 2016-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# SPDX-FileCopyrightText: 2016 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# Author: Allen Winter <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
Expand Down
2 changes: 1 addition & 1 deletion ui/clienttoolmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Qt::ItemFlags ClientToolModel::flags(const QModelIndex &index) const
if (!index.isValid())
return flags;

const auto &tool = m_toolManager->tools().at(index.row());
const auto tool = m_toolManager->tools().at(index.row());
if (!tool.isEnabled() || (!tool.remotingSupported() && Endpoint::instance()->isRemoteClient()))
flags &= ~(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
return flags;
Expand Down
2 changes: 1 addition & 1 deletion ui/uistatemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ void UIStateManager::headerSectionCountChanged()
// E.g. we might be here because of columnsInserted() (which just finished, but not all receivers were told yet)
// and restoring will sort() the model, which will emit layoutChanged(). Separate the two so QAbstractItemModelTester doesn't abort.
// clang-format off
QMetaObject::invokeMethod(this, "restoreHeaderState", Qt::QueuedConnection, Q_ARG(QHeaderView*, headerView));
QMetaObject::invokeMethod(this, "restoreHeaderState", Qt::QueuedConnection, Q_ARG(QHeaderView *, headerView));
// clang-format on
}

Expand Down

0 comments on commit ee8505f

Please sign in to comment.