Sébastien Blin | 1f91576 | 2020-08-03 13:27:42 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019-2020 by Savoir-faire Linux |
| 3 | * Author: Yang Wang <yang.wang@savoirfairelinux.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | import QtQuick 2.14 |
| 20 | import QtQuick.Window 2.14 |
| 21 | import QtQuick.Controls 2.14 |
| 22 | import QtQuick.Controls.Universal 2.12 |
| 23 | import QtQuick.Layouts 1.3 |
| 24 | import QtGraphicalEffects 1.14 |
| 25 | import QtQuick.Controls.Styles 1.4 |
| 26 | import net.jami.Models 1.0 |
| 27 | |
| 28 | Rectangle{ |
| 29 | id: listViewBackground |
| 30 | |
| 31 | property alias model: listView.model |
| 32 | property alias delegate: listView.delegate |
| 33 | property alias currentIndex: listView.currentIndex |
| 34 | |
| 35 | border.width: 1 |
| 36 | border.color: JamiTheme.hoverColor |
| 37 | |
| 38 | color: JamiTheme.releaseColor |
| 39 | |
| 40 | ListView{ |
| 41 | id: listView |
| 42 | |
| 43 | anchors.fill: parent |
| 44 | |
| 45 | visible: listViewBackground.visible |
| 46 | layer.mipmap: false |
| 47 | clip: true |
| 48 | |
| 49 | ScrollIndicator.vertical: ScrollIndicator {} |
| 50 | } |
| 51 | } |