added preview to readme

This commit is contained in:
Andrei Yankovich 2022-01-18 17:59:30 +03:00
parent ea1da8a928
commit 443933ac0e
2 changed files with 32 additions and 2 deletions

View File

@ -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 {
}
```

View File

@ -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 {