From e68f2d2e8b36da87997d397cf3e6ee3b471bf1f9 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Tue, 9 Jun 2026 21:50:14 +0300 Subject: [PATCH] refactor(DeviceTab.qml): enhance SidebarTabButton with title and udid properties --- src/ui/DeviceTab.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/DeviceTab.qml b/src/ui/DeviceTab.qml index 62b8a03..36d159a 100644 --- a/src/ui/DeviceTab.qml +++ b/src/ui/DeviceTab.qml @@ -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