UI: BlockedPage, StatisticsPage: Add scrollbars.

This commit is contained in:
Nodir Temirkhodjaev 2017-12-14 14:24:09 +05:00
parent 188705cb79
commit fdd483ea7a
4 changed files with 14 additions and 0 deletions

View File

@ -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>

View File

@ -0,0 +1,8 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
ScrollBar {
policy: position ? ScrollBar.AlwaysOn
: ScrollBar.AsNeeded
}

View File

@ -226,6 +226,8 @@ BasePage {
model: trafListModel
delegate: TrafRow {}
ScrollBar.vertical: ScrollBarControl {}
}
}
}

View File

@ -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