mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-06 12:51:57 +02:00
[ui] Add the notion of Node Documentation
This commit is contained in:
parent
2ebcf19382
commit
0e606eef4e
4 changed files with 55 additions and 0 deletions
38
meshroom/ui/qml/GraphEditor/NodeDocumentation.qml
Normal file
38
meshroom/ui/qml/GraphEditor/NodeDocumentation.qml
Normal file
|
@ -0,0 +1,38 @@
|
|||
import QtQuick 2.11
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.Layouts 1.3
|
||||
import Controls 1.0
|
||||
|
||||
import "common.js" as Common
|
||||
|
||||
/**
|
||||
* 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.documentation
|
||||
wrapMode: TextEdit.Wrap
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue