diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-06-18 20:49:33 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-06-20 19:56:48 +0200 |
commit | 9578edd239f4f1e33d2bf5c044b1bf80ab2c595d (patch) | |
tree | 99f01c482f9af9ded151ca56d7dd0f45c08992c6 /src/controls/Styles/Base/ScrollViewStyle.qml | |
parent | a99380b155bf679e240e4d01b70691feebad0d4c (diff) | |
download | qtquickcontrols-9578edd239f4f1e33d2bf5c044b1bf80ab2c595d.tar.gz |
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 <gabriel.dedietrich@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src/controls/Styles/Base/ScrollViewStyle.qml')
-rw-r--r-- | src/controls/Styles/Base/ScrollViewStyle.qml | 5 |
1 files changed, 0 insertions, 5 deletions
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 |