diff --git a/KelvinDashboardGUI/DapUiQmlWidgetChainNodeLogs.ui.qml b/KelvinDashboardGUI/DapUiQmlWidgetChainNodeLogs.ui.qml index ae9aa0714406d80b3d5de0005a16d4b035b3b6fe..ae9cd76bc17319c602ee1c054f4d8df3ecb5fd12 100644 --- a/KelvinDashboardGUI/DapUiQmlWidgetChainNodeLogs.ui.qml +++ b/KelvinDashboardGUI/DapUiQmlWidgetChainNodeLogs.ui.qml @@ -7,6 +7,26 @@ Page { id: dapUiQmlWidgetChainNodeLogs title: "Logs" + ListModel + { + id: nodeModel + + ListElement + { + name: "Node 1" + } + + ListElement + { + name: "Node 2" + } + + ListElement + { + name: "Node 3" + } + } + TabView { id: tabViewLogs @@ -16,7 +36,7 @@ Page { anchors.right: parent.right Repeater { anchors.fill: parent - model: dapUiQmlWidgetModel + model: nodeModel delegate: Tab{ @@ -88,7 +108,7 @@ Page { headerDelegate: Rectangle { height: 20 - color: "red" + color: "orange" Text { text: styleData.value @@ -107,97 +127,98 @@ Page { } } - TabView - { - id: tabViewLogs - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: parent.right - Repeater { - anchors.fill: parent - model: dapUiQmlWidgetModel - delegate: - Tab{ +// TabView +// { +// id: tabViewLogs +// anchors.top: parent.top +// anchors.bottom: parent.bottom +// anchors.left: parent.left +// anchors.right: parent.right +// Repeater { +// anchors.fill: parent +// model: dapUiQmlWidgetModel +// delegate: +// Tab{ - title: qsTr(name) +// title: qsTr(name) - TableView { - id: tableViewLogs - model: dataModel - clip: true +// TableView { +// id: tableViewLogs +// model: dataModel +// clip: true - TableViewColumn { - id: columnType - role: "type" - title: "Type" - delegate: - Item - { - height: parent.height - width: parent.height - Rectangle { - anchors.fill: parent - color: "transparent" - Image { - id: names - height: parent.height - width: parent.height -// source: model.type - anchors.centerIn: parent - } - } - } - } - TableViewColumn { - id: columnDate - role: "name" - title: "Date" - } - TableViewColumn { - id: columnTime - role: "cost" - title: "Time" - } - TableViewColumn { - id: columnFile - role: "file" - title: "File" - } - TableViewColumn { - id: columnMessage - role: "Message" - title: "Message" - } - itemDelegate: Item { - Text { - anchors.centerIn: parent - renderType: Text.NativeRendering - text: styleData.value - } - } - headerDelegate: Rectangle { - height: 20 - color: "#29333f" +// TableViewColumn { +// id: columnType +// role: "type" +// title: "Type" +// delegate: +// Item +// { +// height: parent.height +// width: parent.height +// Rectangle { +// anchors.fill: parent +// color: "transparent" +// Image { +// id: names +// height: parent.height +// width: parent.height +//// source: model.type +// anchors.centerIn: parent +// } +// } +// } +// } +// TableViewColumn { +// id: columnDate +// role: "name" +// title: "Date" +// } +// TableViewColumn { +// id: columnTime +// role: "cost" +// title: "Time" +// } +// TableViewColumn { +// id: columnFile +// role: "file" +// title: "File" +// } +// TableViewColumn { +// id: columnMessage +// role: "Message" +// title: "Message" +// } +// itemDelegate: Item { +// Text { +// anchors.centerIn: parent +// renderType: Text.NativeRendering +// text: styleData.value +// } +// } +// headerDelegate: Rectangle { +// height: 20 +// color: "#29333f" - Text { - text: styleData.value - color: "#FFF" - width: parent.width - height: parent.height - font.pointSize: 24 - minimumPointSize: 3 - font.family: "Roboto" - fontSizeMode: Text.Fit - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } +// Text { +// text: styleData.value +// color: "#FFF" +// width: parent.width +// height: parent.height +// font.pointSize: 24 +// minimumPointSize: 3 +// font.family: "Roboto" +// fontSizeMode: Text.Fit +// horizontalAlignment: Text.AlignHCenter +// verticalAlignment: Text.AlignVCenter +// } +// } - } - } - } +// } +// } +// } +// } } }