/* SPDX-FileCopyrightText: 2014-2015 Harald Sitter SPDX-FileCopyrightText: 2016 David Rosca SPDX-FileCopyrightText: 2020 David Redondo SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ import QtQuick import QtQuick.Controls ComboBox { textRole: "Description" valueRole: "Index" property int deviceIndex: DeviceIndex onActivated: DeviceIndex = currentValue onDeviceIndexChanged: { currentIndex = indexOfValue(DeviceIndex) } Component.onCompleted: currentIndex = indexOfValue(DeviceIndex) }