blob: c20cc8c3eb6b3d4282fcdbc790ed5bc310666e7d [file] [log] [blame]
Sébastien Blin1f915762020-08-03 13:27:42 -04001/*
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
19import QtQuick 2.14
20import QtQuick.Window 2.14
21import QtQuick.Controls 2.14
22import QtQuick.Controls.Universal 2.12
23import QtQuick.Layouts 1.3
24import QtGraphicalEffects 1.14
25import QtQuick.Controls.Styles 1.4
26import net.jami.Models 1.0
27
28Rectangle{
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}