diff --git a/README.md b/README.md index 7578084..c4ed4b5 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ The library has c++ interface DP::iPill and QML view for diagnostic gui applicat For Disable the gui part of the library use the DOCTOR_PILL_GUI option. + +![2022-01-18 17-50-20](https://user-images.githubusercontent.com/12465465/149961627-2f74d25d-f047-4176-913b-6d3f833603cf.gif) + + ## BUILD OPTIONS ``` cmake @@ -143,3 +147,4 @@ ApplicationWindow { } ``` + diff --git a/src/Library/DoctorPillModule/DoctorView.qml b/src/Library/DoctorPillModule/DoctorView.qml index 1c60982..4ef412a 100644 --- a/src/Library/DoctorPillModule/DoctorView.qml +++ b/src/Library/DoctorPillModule/DoctorView.qml @@ -6,12 +6,32 @@ import QtQuick.Layouts 1.15 Page { id: root; property var model : null + + property bool showDescription: true + property bool showTitle: true + implicitHeight: 0x0 signal contactWithDevsPressed(); + title: qsTr("Application doctor room"); + + header: Label { + horizontalAlignment: Label.AlignHCenter + text: title + font.pointSize: 20 + color: "#424242" + wrapMode: Label.WordWrap + visible: showTitle + } + contentItem: ColumnLayout { + spacing: 20 + + Item { + Layout.fillHeight: !list.visible + } Label { id: descriptionMsg @@ -211,6 +231,11 @@ Page { } } } + + Item { + Layout.fillHeight: !list.visible + } + } state: (root.model)? privateRoot.getState(root.model.state): "beginDiagnostic" @@ -225,12 +250,12 @@ Page { name: "beginDiagnostic" PropertyChanges { target: atansionMsg; - visible: true + visible: showDescription } PropertyChanges { target: descriptionMsg; - visible: true + visible: showDescription } PropertyChanges {