mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
38 lines
812 B
QML
38 lines
812 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import Controls 1.0
|
|
|
|
/**
|
|
* Displays Node documentation
|
|
*/
|
|
|
|
FocusScope {
|
|
id: root
|
|
|
|
property variant node
|
|
|
|
SystemPalette { id: activePalette }
|
|
|
|
ScrollView {
|
|
width: parent.width
|
|
height: parent.height
|
|
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
|
clip: true
|
|
|
|
TextEdit {
|
|
width: parent.parent.width
|
|
height: parent.height
|
|
|
|
padding: 8
|
|
textFormat: TextEdit.MarkdownText
|
|
selectByMouse: true
|
|
selectionColor: activePalette.highlight
|
|
color: activePalette.text
|
|
text: node ? node.documentation : ""
|
|
wrapMode: TextEdit.Wrap
|
|
}
|
|
}
|
|
}
|