mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Styling to add descriptive tooltips to the settings -> preferences -> view page.
contributes to issue from Asana: #unknown
This commit is contained in:
parent
9542819c7f
commit
caa7fdb147
1 changed files with 24 additions and 2 deletions
|
@ -4,10 +4,13 @@
|
|||
import QtQuick 2.1
|
||||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
|
||||
import UM 1.0 as UM
|
||||
|
||||
UM.PreferencesPage {
|
||||
id: preferencesPage
|
||||
|
||||
//: View configuration page title
|
||||
title: qsTr("View");
|
||||
|
||||
|
@ -20,13 +23,32 @@ UM.PreferencesPage {
|
|||
columns: 2;
|
||||
|
||||
CheckBox {
|
||||
checked: UM.Preferences.getValue("view/show_overhang");
|
||||
id: viewCheckbox
|
||||
checked: UM.Preferences.getValue("view/show_overhang")
|
||||
onCheckedChanged: UM.Preferences.setValue("view/show_overhang", checked)
|
||||
}
|
||||
Button {
|
||||
id: viewText //is a button so the user doesn't have te click inconvenientley precise to enable or disable the checkbox
|
||||
|
||||
//: Display Overhang preference checkbox
|
||||
text: qsTr("Display Overhang");
|
||||
}
|
||||
onClicked: viewCheckbox.checked = !viewCheckbox.checked
|
||||
|
||||
//: Display Overhang preference tooltip
|
||||
tooltip: "Highlight unsupported areas of the model in red. Without support these areas will nog print properly."
|
||||
|
||||
style: ButtonStyle {
|
||||
background: Rectangle {
|
||||
border.width: 0
|
||||
color: "transparent"
|
||||
}
|
||||
label: Text {
|
||||
renderType: Text.NativeRendering
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
text: control.text
|
||||
}
|
||||
}
|
||||
}
|
||||
Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue