From 035c95705445b81ece5c8aeced8af322b1572232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Wed, 9 Sep 2015 00:08:01 +0200 Subject: [PATCH] Fixed small UI issues --- src/interface/modeler/quickapp/qml/BaseSlider.qml | 1 + src/interface/modeler/quickapp/qml/ToolbarButton.qml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/interface/modeler/quickapp/qml/BaseSlider.qml b/src/interface/modeler/quickapp/qml/BaseSlider.qml index 58cc14e..f9338d6 100644 --- a/src/interface/modeler/quickapp/qml/BaseSlider.qml +++ b/src/interface/modeler/quickapp/qml/BaseSlider.qml @@ -4,4 +4,5 @@ import QtQuick.Controls 1.2 Slider { signal changed(real value) onValueChanged: changed(value) + opacity: enabled ? 1.0 : 0.1 } diff --git a/src/interface/modeler/quickapp/qml/ToolbarButton.qml b/src/interface/modeler/quickapp/qml/ToolbarButton.qml index 48fdba6..2453030 100644 --- a/src/interface/modeler/quickapp/qml/ToolbarButton.qml +++ b/src/interface/modeler/quickapp/qml/ToolbarButton.qml @@ -94,6 +94,10 @@ Item { tooltip_widget.hovertext = ""; } onClicked: { + if (button.checked && button.exclusiveGroup) { + return; + } + button.checked = !button.checked; if (!button.toggle) {