From 3ab58b38779dea8ba7b0982597bbc6708febb517 Mon Sep 17 00:00:00 2001 From: Daker Fernandes Pinheiro Date: Mon, 18 Jul 2011 18:49:45 -0300 Subject: [PATCH] Fix comments about graphics for plasma components enabled/disabled properties Signed-off-by: Daker Fernandes Pinheiro --- declarativeimports/plasmacomponents/Button.qml | 4 +++- declarativeimports/plasmacomponents/DualStateButton.qml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/declarativeimports/plasmacomponents/Button.qml b/declarativeimports/plasmacomponents/Button.qml index 2f85447d0..48bb71791 100644 --- a/declarativeimports/plasmacomponents/Button.qml +++ b/declarativeimports/plasmacomponents/Button.qml @@ -60,7 +60,9 @@ Item { width: 50 height: 20 - opacity: enabled ? 1.0 : 0.5 // XXX: temporary solution + // TODO: needs to define if there will be specific graphics for + // disabled buttons + opacity: enabled ? 1.0 : 0.5 Keys.onSpacePressed: pressButton(); Keys.onReturnPressed: pressButton(); diff --git a/declarativeimports/plasmacomponents/DualStateButton.qml b/declarativeimports/plasmacomponents/DualStateButton.qml index 968c5cb48..c8613fea2 100644 --- a/declarativeimports/plasmacomponents/DualStateButton.qml +++ b/declarativeimports/plasmacomponents/DualStateButton.qml @@ -36,7 +36,9 @@ Item { width: surface.width + label.paintedWidth height: surface.height - opacity: dualButton.enabled ? 1.0 : 0.5 // XXX: temporary solution + // TODO: needs to define if there will be specific graphics for + // disabled buttons + opacity: dualButton.enabled ? 1.0 : 0.5 function entered() { if (dualButton.enabled) {