refactor(DeviceTab.qml): enhance SidebarTabButton with title and udid properties

This commit is contained in:
uncor3
2026-06-09 21:50:14 +03:00
parent ce80232a82
commit e68f2d2e8b
+6 -2
View File
@@ -3,6 +3,8 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import iDescriptor 1.0
import "." as App
// FIXME: this will fail on Linux and macOS
import "./windows"
Item {
id: root
@@ -32,11 +34,13 @@ Item {
Layout.preferredWidth: 200
Layout.alignment: Qt.AlignHCenter
readonly property string deviceUdid: model.udid
readonly property var info: model.info
SidebarTabButton {
id : button
anchors.fill: parent
currentSection: root.currentSection
currentSection: root.currentSection
title: info.product_type
udid : info["UniqueDeviceID"]
onSectionChanged: {
if (root.currentSection !== sectionIndex)
root.currentSection = sectionIndex