| 1 |
import QtQuick 2.2 |
| 2 |
import QtQuick.Controls 1.1 |
| 3 |
|
| 4 |
|
| 5 |
Item { |
| 6 |
id: main |
| 7 |
TabView { |
| 8 |
id: deviceSubTabs |
| 9 |
anchors.fill: parent |
| 10 |
frameVisible: count > 1 |
| 11 |
tabsVisible: count > 1 |
| 12 |
|
| 13 |
// Placeholder. Todo: Add and Remove on wifi device from C++ Signal. |
| 14 |
// Somehow get the ip in the title too. |
| 15 |
//Component.onCompleted: deviceSubTabs.addTab(qsTr("Wifi"), deviceSubComponent ) |
| 16 |
|
| 17 |
// Permanent tab |
| 18 |
Tab { |
| 19 |
title: qsTr("USB") + translator.lang + ((i.device === null || i.device.battery < 0) ? (" [" + i.ip + "]") : "") |
| 20 |
DeviceSub { anchors.fill: parent } |
| 21 |
} |
| 22 |
} |
| 23 |
Component { |
| 24 |
id: deviceSubComponent |
| 25 |
DeviceSub { anchors.fill: parent } |
| 26 |
} |
| 27 |
} |