summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2023-09-19 14:15:51 +0300
committerPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2023-09-19 15:32:54 +0000
commit38cdd2cad6ac6e87f8b3badf0ea99f3700d631b4 (patch)
tree66c5350379c61b630e392a8bbbd2fd1db013055a
parente65304f19ee63366fb37c36cd8d8b1067393b3ae (diff)
Use new role to access model data from delegate
Qt 6.6 changed many properties to FINAL for preventing adding new properties with same name (QTBUG-108739) and did break accessing Interface and Service related entries in the model. Fixed with a8adf5abf85beaf0f305adcf3ea4efcb51a81dd7 in qtdeviceutilities Fixes: QTBUG-117041 Change-Id: I2b38c25641c52d9c82fbe10efbb4d937f92df151 Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io>
-rw-r--r--startupscreen/NetworkSettings/NetworkDelegate.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/startupscreen/NetworkSettings/NetworkDelegate.qml b/startupscreen/NetworkSettings/NetworkDelegate.qml
index 67d6bba..b44c206 100644
--- a/startupscreen/NetworkSettings/NetworkDelegate.qml
+++ b/startupscreen/NetworkSettings/NetworkDelegate.qml
@@ -52,7 +52,7 @@ Item {
font.pixelSize: networkSettingsRoot.height * viewSettings.subTitleFontSize
font.family: viewSettings.appFont
color: isConnected ? viewSettings.buttonGreenColor : "white"
- text: (modelData.type === NetworkSettingsType.Wired) ? modelData["name"] + " (" + modelData["id"] + ")" : name
+ text: (entry.type === NetworkSettingsType.Wired) ? entry["name"] + " (" + entry["id"] + ")" : name
}
Row {