import QtQuick 2.6 import QtQuick.Window 2.2 import QtQuick.Controls 1.4 as Ctrl14 import QtQuick.Controls 2.0 //import QtQuick.Controls 1.5 import QtQuick.Controls.Styles 1.4 import com.gfa.ipc.appctrl 1.0 import "globals.js" as Globals /* Available Roles (Columns): DiskName DiskDevNode DiskDevType DiskVendorName DiskVendorID DiskProductID PartFsLabel PartFsType PartFsVersion PartDevNode PartMountPoint PartSize PartFsSize PartFsFree PartFsUsed */ Rectangle { width: Screen.width height: Screen.height ///////////////////////////////////////////////////////////////////////////////////////////////// TabBar { id: idTabBar width: parent.width currentIndex: 3 Repeater { id: idRep model: Globals.tabBarModel NavButton { text: modelData[0] onClicked: { idPageLoader.source = modelData[1]; } width: idTabBar.width / idRep.count } } } ///////////////////////////////////////////////////////////////////////////////////////////////// Ctrl14.TableView { x: 10 y: 50 width: parent.width - 20 height: 420 style: TableViewStyle { itemDelegate: idTableViewItemStyle headerDelegate: idTableViewHeaderStyle } Ctrl14.TableViewColumn { role: "DiskDevType" width: 32 delegate:imageDelegate } Ctrl14.TableViewColumn { width: 120 title: "Disk" role: "DiskName" } Ctrl14.TableViewColumn { width: 80 title: "Volume" role: "PartFsLabel" } Ctrl14.TableViewColumn { width: 80 title: "Size" role: "PartSize" } Ctrl14.TableViewColumn { width: 80 title: "Used" role: "PartFsUsed" } Ctrl14.TableViewColumn { width: 80 title: "Free" role: "PartFsFree" } Ctrl14.TableViewColumn { width: 145 title: "Node" role: "PartDevNode" } Ctrl14.TableViewColumn { title: "Mountpoint" role: "PartMountPoint" } model: qGfaAppCtrl.sysInfo.stgDev } }