mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 00:32:11 +08:00
fe30561f77
* initial_commit * rich text + color * nice scrolling * margin * print on scroll + some margins * print on scroll + some margins * working, needs a lot of improvements * should be done * initial_commit * rich text + color * nice scrolling * margin * print on scroll + some margins * print on scroll + some margins * working, needs a lot of improvements * should be done * update tests * Revert "update tests" This reverts commit 94d5ed789eb79bedc9544fc27b4d14c0acc44adf. * cleanup * QuickView -> QuickWidget * tuned scrolling * cherry on top * screen size scaling * load from html * fixing tabs * signal fix * TABS * mistake * rename * camel case * transparent background * naming + point->pixel Size * style * util::read_file * adjusting font size Co-authored-by: Comma Device <device@comma.ai> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: 55926e762a5198a0a8456419b9afa1d6cb22bb4e
34 lines
595 B
QML
34 lines
595 B
QML
import QtQuick 2.0
|
|
|
|
Item {
|
|
id: root
|
|
signal qmlSignal()
|
|
|
|
Flickable {
|
|
id: flickArea
|
|
objectName: "flickArea"
|
|
anchors.fill: parent
|
|
contentHeight: helpText.height
|
|
contentWidth: helpText.width
|
|
flickableDirection: Flickable.VerticalFlick
|
|
flickDeceleration: 7500.0
|
|
maximumFlickVelocity: 10000.0
|
|
pixelAligned: true
|
|
|
|
onAtYEndChanged: root.qmlSignal()
|
|
|
|
Text {
|
|
id: helpText
|
|
width: flickArea.width
|
|
font.pixelSize: font_size
|
|
textFormat: Text.RichText
|
|
color: "white"
|
|
wrapMode: Text.Wrap
|
|
|
|
text: text_view
|
|
}
|
|
}
|
|
}
|
|
|
|
|