port widget to dbus

This commit is contained in:
2024-03-08 17:32:07 +02:00
parent 0fcfb7d7e4
commit 423597dbd9
54 changed files with 921 additions and 693 deletions

View File

@ -15,8 +15,8 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
import QtQuick 2.0
import QtQuick.Controls 1.3 as QtControls
import QtQuick 2.15
import QtQuick.Controls
Row {
@ -32,14 +32,14 @@ Row {
signal valueEdited(string newValue)
QtControls.Label {
Label {
id: label
height: parent.height
width: parent.width * 2 / 5
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
}
QtControls.ComboBox {
ComboBox {
id: comboBox
width: parent.width * 3 / 5
textRole: 'label'
@ -47,7 +47,7 @@ Row {
Component.onCompleted: {
var total = comboBox.model.length
for (var i = 0; i < total; i++) {
if (comboBox.model[i]["name"] == value)
if (comboBox.model[i]["name"] === value)
comboBox.currentIndex = i
}
}