mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[ui] NodeEditor: refactor ChunksList and add global stats
This commit is contained in:
parent
bd5d447d12
commit
831443c29d
9 changed files with 415 additions and 307 deletions
52
meshroom/ui/qml/Controls/KeyValue.qml
Normal file
52
meshroom/ui/qml/Controls/KeyValue.qml
Normal file
|
@ -0,0 +1,52 @@
|
|||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.Layouts 1.3
|
||||
import MaterialIcons 2.2
|
||||
|
||||
/**
|
||||
* KeyValue allows to create a list of key/value, like a table.
|
||||
*/
|
||||
Rectangle {
|
||||
property alias key: keyLabel.text
|
||||
property alias value: valueText.text
|
||||
|
||||
color: activePalette.window
|
||||
|
||||
width: parent.width
|
||||
height: childrenRect.height
|
||||
|
||||
RowLayout {
|
||||
width: parent.width
|
||||
Rectangle {
|
||||
anchors.margins: 2
|
||||
color: Qt.darker(activePalette.window, 1.1)
|
||||
// Layout.preferredWidth: sizeHandle.x
|
||||
Layout.minimumWidth: 10.0 * Qt.application.font.pixelSize
|
||||
Layout.maximumWidth: 15.0 * Qt.application.font.pixelSize
|
||||
Layout.fillWidth: false
|
||||
Layout.fillHeight: true
|
||||
Label {
|
||||
id: keyLabel
|
||||
text: "test"
|
||||
anchors.fill: parent
|
||||
anchors.top: parent.top
|
||||
topPadding: 4
|
||||
leftPadding: 6
|
||||
verticalAlignment: TextEdit.AlignTop
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
TextArea {
|
||||
id: valueText
|
||||
text: ""
|
||||
anchors.margins: 2
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Label.WrapAtWordBoundaryOrAnywhere
|
||||
textFormat: TextEdit.PlainText
|
||||
|
||||
readOnly: true
|
||||
selectByMouse: true
|
||||
background: Rectangle { anchors.fill: parent; color: Qt.darker(activePalette.window, 1.05) }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,6 +3,7 @@ module Controls
|
|||
ColorChart 1.0 ColorChart.qml
|
||||
FloatingPane 1.0 FloatingPane.qml
|
||||
Group 1.0 Group.qml
|
||||
KeyValue 1.0 KeyValue.qml
|
||||
MessageDialog 1.0 MessageDialog.qml
|
||||
Panel 1.0 Panel.qml
|
||||
SearchBar 1.0 SearchBar.qml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue