From 9578edd239f4f1e33d2bf5c044b1bf80ab2c595d Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 18 Jun 2014 20:49:33 +0200 Subject: Kill unnecessary SystemPalette instances Each SystemPalette instance installs an event filter on the application object, so we should try to avoid these as much as possible. Style already creates an instance that switches between Active and Disabled states based on control's enabled state and is suitable for most use cases. Change-Id: Icdbc793f639a3217ece6b2ded281e2a8beacb742 Reviewed-by: Gabriel de Dietrich Reviewed-by: Caroline Chao --- src/controls/Styles/Base/ScrollViewStyle.qml | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/controls/Styles/Base/ScrollViewStyle.qml') diff --git a/src/controls/Styles/Base/ScrollViewStyle.qml b/src/controls/Styles/Base/ScrollViewStyle.qml index d072f82e..8c17e35a 100644 --- a/src/controls/Styles/Base/ScrollViewStyle.qml +++ b/src/controls/Styles/Base/ScrollViewStyle.qml @@ -51,11 +51,6 @@ import QtQuick.Controls.Private 1.0 Style { id: root - /*! \internal */ - property var __syspal: SystemPalette { - colorGroup: control.enabled ? - SystemPalette.Active : SystemPalette.Disabled - } /*! The \l ScrollView attached to this style. */ readonly property ScrollView control: __control -- cgit v1.2.1