Commit 0006e068 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: hide reset property button if not applicable

See Bauhaus-233
parent 34016549
...@@ -62,8 +62,9 @@ QToolButton { ...@@ -62,8 +62,9 @@ QToolButton {
actions: [ actions: [
QAction { QAction {
text: qsTr("Reset") text: qsTr("Reset")
visible: backendValue.isInSubState || backendValue.isInModel
onTriggered: { onTriggered: {
backendValue.resetValue(); backendValue.resetValue();
} }
}, },
......
...@@ -375,7 +375,7 @@ QMenu { ...@@ -375,7 +375,7 @@ QMenu {
background-color: #494949; background-color: #494949;
border: 1px solid black; border: 1px solid black;
margin: 0px; margin: 0px;
color: #cacaca; color: #dadada;
} }
QMenu::item { QMenu::item {
...@@ -390,6 +390,10 @@ QMenu { ...@@ -390,6 +390,10 @@ QMenu {
border-radius: 4px; border-radius: 4px;
padding: 2px 25px 2px 20px; padding: 2px 25px 2px 20px;
} }
QMenu::item:disabled {
color: #aaaaaa;
}
QMenu::separator { QMenu::separator {
height: 1px; height: 1px;
background: #404040; background: #404040;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment