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
|
|
|
|
*/
|
|
|
|
|
2022-12-13 21:49:55 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import org.kde.kirigami 2.20 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
|
|
|
|
|
2022-12-13 21:51:20 +00:00
|
|
|
actions.main: loader.item && loader.item.action ? loader.item.action : null
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|