From 1d0a0b5cdffa8f3c6a5062e0dba7a5c3754957d5 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 13 Jul 2017 14:03:16 +0200 Subject: [PATCH] [PlasmaComponents] Remove Config.js It got redundant and since it wasn't declared as "pragma library" an instance of this script was created for every ListItem, causing quite some memory consumption. Reviewed-By: notmart --- .../plasmacomponents/qml/ListItem.qml | 3 +-- .../plasmacomponents/qml/private/Config.js | 20 ------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 src/declarativeimports/plasmacomponents/qml/private/Config.js diff --git a/src/declarativeimports/plasmacomponents/qml/ListItem.qml b/src/declarativeimports/plasmacomponents/qml/ListItem.qml index 3a5f30eca..5410f72e8 100644 --- a/src/declarativeimports/plasmacomponents/qml/ListItem.qml +++ b/src/declarativeimports/plasmacomponents/qml/ListItem.qml @@ -19,7 +19,6 @@ import QtQuick 2.1 import org.kde.plasma.core 2.0 as PlasmaCore -import "private/Config.js" as Config /** * An item delegate for the primitive ListView component. @@ -117,7 +116,7 @@ Item { property bool changeBackgroundOnPress: !listItem.checked && !listItem.sectionDelegate anchors.fill: background enabled: false - hoverEnabled: Config.mouseOverEnabled + hoverEnabled: true onClicked: listItem.clicked() onPressAndHold: listItem.pressAndHold() diff --git a/src/declarativeimports/plasmacomponents/qml/private/Config.js b/src/declarativeimports/plasmacomponents/qml/private/Config.js deleted file mode 100644 index 2807c8157..000000000 --- a/src/declarativeimports/plasmacomponents/qml/private/Config.js +++ /dev/null @@ -1,20 +0,0 @@ -/* -* Copyright (C) 2012 Marco Martin -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU Library General Public License as -* published by the Free Software Foundation; either version 2, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -var mouseOverEnabled = true