From 5ca99eaf40f06ee620c04deeed429a14496a467f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 8 Nov 2015 21:02:27 +0100 Subject: add standart ListItem --- .../kmail-quick/package/contents/ui/ListItem.qml | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 applications/kmail-quick/package/contents/ui/ListItem.qml (limited to 'applications/kmail-quick/package/contents/ui') diff --git a/applications/kmail-quick/package/contents/ui/ListItem.qml b/applications/kmail-quick/package/contents/ui/ListItem.qml new file mode 100644 index 00000000..95f7858e --- /dev/null +++ b/applications/kmail-quick/package/contents/ui/ListItem.qml @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2015 Michael Bohlender + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +import QtQuick 2.4 + +Item { + id: delegateRoot + + readonly property bool isCurrentItem: ListView.isCurrentItem + + height: unit.width * 25 + width: parent.width + + MouseArea { + id: mouseArea + + anchors.fill: parent + } + + Rectangle { + anchors.fill: parent + + color: colorPalette.background + + //clickColor + Rectangle { + id: clickColor + + anchors.fill: parent + + color: colorPalette.selected + opacity: 0.4 + + visible: mouseArea.pressed + } + + //border + Rectangle { + + anchors.bottom: parent.bottom + + height: 1 + width: parent.width + + color: colorPalette.border + opacity: 0.2 + } + } +} \ No newline at end of file -- cgit v1.2.3