kdeconnect-kde/app/qml/PluginItem.qml
Nicolas Fella 37ff0b5318 [app] Remove QML import versions
Those are not needed in Qt6 and only get in the way
2023-12-25 15:56:13 +00:00

39 lines
1,009 B
QML

/*
* SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez <aleixpol@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import org.kde.kdeconnect
QtObject
{
property alias pluginName: checker.pluginName
property alias iconName: checker.iconName
property alias loaded: checker.available
property alias device: checker.device
property var interfaceFactory
property var component
property var name
readonly property var checker: PluginChecker {
id: checker
}
property var onClick: () => {
if (component === "" || !interfaceFactory)
return;
var obj = interfaceFactory.create(checker.device.id());
var page = pageStack.push(
component,
{ pluginInterface: obj,
device: checker.device
}
);
obj.parent = page
}
}