Commit 7f735463 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez

Fix Connections warnings in Menu.qml

parent 46d842be
......@@ -140,6 +140,14 @@ else()
set(DISABLE_UNDER_QQC2_2_4 "")
endif()
if (Qt5Qml_VERSION_STRING VERSION_GREATER_EQUAL 5.14)
set(DISABLE_UNDER_QT_5_14 "")
set(DISABLE_AT_QT_5_14 "//Disabled since Qt 5.14 ")
else()
set(DISABLE_UNDER_QT_5_14 "//Needs Qt 5.14 ")
set(DISABLE_AT_QT_5_14 "")
endif()
# Find all the source qml files
FILE(GLOB_RECURSE inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/org.kde.desktop/*")
......
......@@ -49,7 +49,12 @@ T.Menu {
Connections {
target: control.contentItem.contentItem
onChildrenChanged: {
@DISABLE_UNDER_QT_5_14@ function
onChildrenChanged
@DISABLE_UNDER_QT_5_14@ ()
@DISABLE_AT_QT_5_14@ :
{
for (var i in control.contentItem.contentItem.children) {
var child = control.contentItem.contentItem.children[i];
if (child.checkable) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment