// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include #include #include struct BackendObject : public Qul::Singleton { Qul::Property customProperty; Qul::Signal customPropertyChanged; BackendObject() : customProperty(true) {} void toggle() { customProperty.setValue(!customProperty.value()); customPropertyChanged(); } };