Fix cursorShape for sidebar controls

This commit is contained in:
fieldOfView 2015-11-19 17:57:20 +01:00
parent 101df0035d
commit 3a8de56f66
5 changed files with 43 additions and 1 deletions

View file

@ -96,6 +96,12 @@ Item{
tooltip: UM.MachineManager.activeProfile tooltip: UM.MachineManager.activeProfile
style: UM.Theme.styles.sidebar_header_button style: UM.Theme.styles.sidebar_header_button
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
menu: Menu menu: Menu
{ {
id: profileSelectionMenu id: profileSelectionMenu

View file

@ -61,6 +61,12 @@ Rectangle {
UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice, Printer.jobName) UM.OutputDeviceManager.requestWriteToDevice(UM.OutputDeviceManager.activeDevice, Printer.jobName)
} }
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
style: ButtonStyle { style: ButtonStyle {
background: Rectangle { background: Rectangle {
//opacity: control.enabled ? 1.0 : 0.5 //opacity: control.enabled ? 1.0 : 0.5
@ -102,6 +108,12 @@ Rectangle {
enabled: base.progress > 0.99 && base.activity == true enabled: base.progress > 0.99 && base.activity == true
//iconSource: UM.Theme.icons[UM.OutputDeviceManager.activeDeviceIconName]; //iconSource: UM.Theme.icons[UM.OutputDeviceManager.activeDeviceIconName];
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
style: ButtonStyle { style: ButtonStyle {
background: Rectangle { background: Rectangle {
id: deviceSelectionIcon id: deviceSelectionIcon

View file

@ -117,6 +117,13 @@ Rectangle
checkable: true; checkable: true;
checked: base.currentModeIndex == index checked: base.currentModeIndex == index
onClicked: base.currentModeIndex = index onClicked: base.currentModeIndex = index
MouseArea {
anchors.fill: parent
cursorShape: checked ? Qt.ArrowCursor : Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
style: ButtonStyle { style: ButtonStyle {
background: Rectangle { background: Rectangle {
border.color: control.checked ? UM.Theme.colors.toggle_checked_border : border.color: control.checked ? UM.Theme.colors.toggle_checked_border :

View file

@ -66,6 +66,12 @@ Item
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
style: UM.Theme.styles.sidebar_header_button style: UM.Theme.styles.sidebar_header_button
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
menu: Menu menu: Menu
{ {
id: machineSelectionMenu id: machineSelectionMenu

View file

@ -192,6 +192,12 @@ Item
text: catalog.i18nc("@option:check","Enable Skirt Adhesion"); text: catalog.i18nc("@option:check","Enable Skirt Adhesion");
style: UM.Theme.styles.checkbox; style: UM.Theme.styles.checkbox;
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
checked: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.adhesion_type == "brim" : false; checked: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.adhesion_type == "brim" : false;
onClicked: onClicked:
{ {
@ -205,9 +211,14 @@ Item
//: Setting enable support checkbox //: Setting enable support checkbox
text: catalog.i18nc("@option:check","Enable Support"); text: catalog.i18nc("@option:check","Enable Support");
style: UM.Theme.styles.checkbox; style: UM.Theme.styles.checkbox;
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}
checked: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.support_enable : false; checked: UM.ActiveProfile.valid ? UM.ActiveProfile.settingValues.support_enable : false;
onClicked: onClicked:
{ {