2020-08-03 13:27:42 -04:00
|
|
|
/*
|
2022-01-06 11:24:13 -05:00
|
|
|
* Copyright (C) 2019-2022 Savoir-faire Linux Inc.
|
2020-08-03 13:27:42 -04:00
|
|
|
* Author: Yang Wang <yang.wang@savoirfairelinux.com>
|
2021-09-08 10:31:38 -04:00
|
|
|
* Author: Mingrui Zhang <mingrui.zhang@savoirfairelinux.com>
|
2020-08-03 13:27:42 -04:00
|
|
|
*
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-09-08 10:31:38 -04:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
2021-03-17 14:23:21 -04:00
|
|
|
|
2021-08-23 13:24:08 -04:00
|
|
|
import net.jami.Constants 1.1
|
2020-08-03 13:27:42 -04:00
|
|
|
|
2021-09-08 10:31:38 -04:00
|
|
|
ListView {
|
|
|
|
id: root
|
2020-08-03 13:27:42 -04:00
|
|
|
|
2021-09-08 10:31:38 -04:00
|
|
|
layer.mipmap: false
|
|
|
|
clip: true
|
|
|
|
maximumFlickVelocity: 1024
|
2020-08-03 13:27:42 -04:00
|
|
|
|
2021-09-08 10:31:38 -04:00
|
|
|
ScrollBar.vertical: JamiScrollBar {
|
|
|
|
id: verticalScrollBar
|
2020-08-03 13:27:42 -04:00
|
|
|
|
2021-09-08 10:31:38 -04:00
|
|
|
attachedFlickableMoving: root.moving
|
2020-08-03 13:27:42 -04:00
|
|
|
}
|
2021-09-08 10:31:38 -04:00
|
|
|
|
|
|
|
Keys.onUpPressed: verticalScrollBar.decrease()
|
|
|
|
Keys.onDownPressed: verticalScrollBar.increase()
|
2020-08-03 13:27:42 -04:00
|
|
|
}
|