diff --git a/src/styles/Material/SwipeListItem.qml b/src/styles/Material/SwipeListItem.qml index 1f8e76ec..5cbe6264 100644 --- a/src/styles/Material/SwipeListItem.qml +++ b/src/styles/Material/SwipeListItem.qml @@ -1,76 +1,70 @@ /* * Copyright 2010 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 2.010-1301, USA. */ import QtQuick 2.5 import org.kde.kirigami 2.4 import QtQuick.Controls.Material 2.1 as Mat import QtQuick.Controls.Material.impl 2.1 as MatImp import "../../private" import "../../templates" as T /** * An item delegate Intended to support extra actions obtainable * by uncovering them by dragging away the item with the handle * This acts as a container for normal list items. * Any subclass of AbstractListItem can be assigned as the contentItem property. * @code * ListView { * model: myModel * delegate: SwipeListItem { * Label { * text: model.text * } * actions: [ * Action { * iconName: "document-decrypt" * onTriggered: print("Action 1 clicked") * }, * Action { * iconName: model.action2Icon * onTriggered: //do something * } * ] * } * * } * @endcode * * @inherit QtQuick.Item */ T.SwipeListItem { id: root - onPressedChanged: { - if (pressed) { - clickAnim.running = true - } - } background: DefaultListItemBackground { - MatImp.Ripple { anchors.fill: parent clip: visible pressed: listItem.pressed anchor: listItem active: listItem.down || listItem.visualFocus color: Qt.rgba(0,0,0,0.2) } } implicitHeight: contentItem.implicitHeight + Units.smallSpacing * 6 }