Fix GlobalMenu initialization on other platforms
Cherry-pick of 76919a13b8
This commit is contained in:
@@ -206,6 +206,9 @@ if(ANDROID OR WIN32)
|
|||||||
set_source_files_properties(qml/ShareActionStub.qml PROPERTIES
|
set_source_files_properties(qml/ShareActionStub.qml PROPERTIES
|
||||||
QT_QML_SOURCE_TYPENAME ShareAction
|
QT_QML_SOURCE_TYPENAME ShareAction
|
||||||
)
|
)
|
||||||
|
set_source_files_properties(qml/GlobalMenuStub.qml PROPERTIES
|
||||||
|
QT_QML_SOURCE_TYPENAME GlobalMenu
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
|
ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
|
||||||
@@ -320,7 +323,10 @@ if(NOT ANDROID AND NOT WIN32)
|
|||||||
qml/EditMenu.qml
|
qml/EditMenu.qml
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
qt_target_qml_sources(neochat QML_FILES qml/ShareActionStub.qml)
|
qt_target_qml_sources(neochat QML_FILES
|
||||||
|
qml/ShareActionStub.qml
|
||||||
|
qml/GlobalMenuStub.qml
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file(config-neochat.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-neochat.h)
|
configure_file(config-neochat.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-neochat.h)
|
||||||
|
|||||||
10
src/qml/GlobalMenuStub.qml
Normal file
10
src/qml/GlobalMenuStub.qml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2025 Joshua Goins <josh@redstrate.com
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
import QtQuick
|
||||||
|
|
||||||
|
import org.kde.neochat
|
||||||
|
|
||||||
|
Item {
|
||||||
|
required property NeoChatConnection connection
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user