[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
This commit is contained in:
parent
f5a217cf04
commit
1d0a0b5cdf
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.1
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
import "private/Config.js" as Config
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An item delegate for the primitive ListView component.
|
* An item delegate for the primitive ListView component.
|
||||||
@ -117,7 +116,7 @@ Item {
|
|||||||
property bool changeBackgroundOnPress: !listItem.checked && !listItem.sectionDelegate
|
property bool changeBackgroundOnPress: !listItem.checked && !listItem.sectionDelegate
|
||||||
anchors.fill: background
|
anchors.fill: background
|
||||||
enabled: false
|
enabled: false
|
||||||
hoverEnabled: Config.mouseOverEnabled
|
hoverEnabled: true
|
||||||
|
|
||||||
onClicked: listItem.clicked()
|
onClicked: listItem.clicked()
|
||||||
onPressAndHold: listItem.pressAndHold()
|
onPressAndHold: listItem.pressAndHold()
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2012 Marco Martin <mart@kde.org>
|
|
||||||
*
|
|
||||||
* 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
|
|
Loading…
Reference in New Issue
Block a user