2019-10-27 17:08:51 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
|
|
*/
|
|
|
|
|
2023-12-23 16:48:04 +00:00
|
|
|
import QtQuick
|
|
|
|
import org.kde.kirigami as Kirigami
|
2019-10-27 17:08:51 +00:00
|
|
|
|
2022-12-13 21:49:55 +00:00
|
|
|
Kirigami.Page {
|
2019-10-27 17:08:51 +00:00
|
|
|
id: root
|
|
|
|
property string configFile
|
|
|
|
property string device
|
|
|
|
|
2023-12-23 20:05:48 +00:00
|
|
|
actions: loader.item && loader.item.action ? [loader.item.action] : []
|
2019-10-27 17:08:51 +00:00
|
|
|
|
2022-12-13 21:49:55 +00:00
|
|
|
onConfigFileChanged: loader.setSource(configFile, {
|
|
|
|
device: root.device
|
|
|
|
})
|
2019-10-27 17:08:51 +00:00
|
|
|
|
|
|
|
Loader {
|
|
|
|
anchors.fill: parent
|
|
|
|
id: loader
|
2022-12-13 21:49:55 +00:00
|
|
|
Component.onCompleted: setSource(configFile, {
|
|
|
|
device: root.device
|
|
|
|
})
|
2019-10-27 17:08:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|