mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Show a description panel when a setting label is clicked
This commit is contained in:
parent
92ebbd592c
commit
c83ba7f6f6
3 changed files with 90 additions and 1 deletions
|
@ -14,6 +14,8 @@ Rectangle {
|
|||
|
||||
property bool collapsed: true;
|
||||
|
||||
signal showDescription(string text, real x, real y);
|
||||
|
||||
MouseArea {
|
||||
anchors.left: parent.left;
|
||||
anchors.right: parent.right;
|
||||
|
@ -135,7 +137,17 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
UM.SettingsView { id: settingsView; width: parent.width; height: 0; opacity: 0; visible: false; verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff }
|
||||
UM.SettingsView {
|
||||
id: settingsView;
|
||||
|
||||
width: parent.width;
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
visible: false;
|
||||
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
||||
|
||||
onShowDescription: base.showDescription(text, x, y);
|
||||
}
|
||||
|
||||
Rectangle { color: "black"; height: 1; width: parent.width; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue