blob: f672e65d3c710d58367baba7752a08d74b689b8a [file] [log] [blame]
Sébastien Blin1f915762020-08-03 13:27:42 -04001
2/*
3 * Copyright (C) 2020 by Savoir-faire Linux
4 * Author: Mingrui Zhang <mingrui.zhang@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19import QtQuick 2.14
20import QtQuick.Controls 2.14
21import net.jami.Models 1.0
22
23ScrollView {
24 id: changeLogScrollView
25
26 anchors.fill: parent
27
28 clip: true
29
30 ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
31
32 TextEdit {
33 id: changeLogTextArea
34
35 width: changeLogScrollView.width
36
37 selectByMouse: false
38 readOnly: true
39 wrapMode: Text.WordWrap
40
41 font.pointSize: JamiTheme.textFontSize - 3
42 text: ClientWrapper.utilsAdaptor.getChangeLog()
43 textFormat: TextEdit.RichText
44
45 MouseArea {
46 anchors.fill: parent
47 propagateComposedEvents: true
48 cursorShape: Qt.ArrowCursor
49 acceptedButtons: Qt.NoButton
50 }
51 }
52
53 background: Rectangle {
54 id: changeLogScrollViewBackground
55
56 radius: 5
57 border.color: JamiTheme.tabbarBorderColor
58 }
59}