Show a description panel when a setting label is clicked

This commit is contained in:
Arjen Hiemstra 2015-02-23 17:43:13 +01:00
parent 92ebbd592c
commit c83ba7f6f6
3 changed files with 90 additions and 1 deletions

View file

@ -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; }