mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:36:09 +00:00
UI: BlockedPage, StatisticsPage: Add scrollbars.
This commit is contained in:
parent
188705cb79
commit
fdd483ea7a
@ -2,6 +2,7 @@
|
||||
<qresource prefix="/">
|
||||
<file>qml/controls/ButtonMenu.qml</file>
|
||||
<file>qml/controls/ButtonPopup.qml</file>
|
||||
<file>qml/controls/ScrollBarControl.qml</file>
|
||||
<file>qml/controls/SpinCombo.qml</file>
|
||||
<file>qml/controls/TextAreaFrame.qml</file>
|
||||
<file>qml/controls/TextContextMenu.qml</file>
|
||||
|
8
src/ui/qml/controls/ScrollBarControl.qml
Normal file
8
src/ui/qml/controls/ScrollBarControl.qml
Normal file
@ -0,0 +1,8 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
ScrollBar {
|
||||
|
||||
policy: position ? ScrollBar.AlwaysOn
|
||||
: ScrollBar.AsNeeded
|
||||
}
|
@ -226,6 +226,8 @@ BasePage {
|
||||
model: trafListModel
|
||||
|
||||
delegate: TrafRow {}
|
||||
|
||||
ScrollBar.vertical: ScrollBarControl {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import "../../controls"
|
||||
import com.fortfirewall 1.0
|
||||
|
||||
ListView {
|
||||
@ -13,6 +14,8 @@ ListView {
|
||||
Keys.onUpPressed: decrementCurrentIndex()
|
||||
Keys.onDownPressed: incrementCurrentIndex()
|
||||
|
||||
ScrollBar.vertical: ScrollBarControl {}
|
||||
|
||||
highlightRangeMode: ListView.ApplyRange
|
||||
highlightResizeDuration: 0
|
||||
highlightMoveDuration: 200
|
||||
|
Loading…
Reference in New Issue
Block a user