-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] NodeEditor: refactor ChunksList and add global stats
- Loading branch information
1 parent
bd5d447
commit 0ef9931
Showing
9 changed files
with
420 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.