blob: 0606f04ceb32ff3fe79b6806f3ae50a3efe645d0 [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: projectCreditsScrollView
25
26 anchors.fill: parent
27
28 clip: true
29
30 ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
31
32 TextEdit {
33 id: projectCreditsTextArea
34
35 horizontalAlignment: Text.AlignHCenter
36
37 width: projectCreditsScrollView.width
38
39 selectByMouse: false
40 readOnly: true
41 wrapMode: Text.WordWrap
42
43 font.pointSize: JamiTheme.textFontSize - 3
44 text: ClientWrapper.utilsAdaptor.getProjectCredits()
45 textFormat: TextEdit.RichText
46
47 MouseArea {
48 anchors.fill: parent
49 propagateComposedEvents: true
50 cursorShape: Qt.ArrowCursor
51 acceptedButtons: Qt.NoButton
52 }
53 }
54
55 background: Rectangle {
56 id: projectCreditsScrollViewBackground
57
58 radius: 5
59 border.color: JamiTheme.tabbarBorderColor
60 }
61}