add ScrollBarType
This commit is contained in:
parent
f992252c6e
commit
87d00116e1
9 changed files with 19 additions and 16 deletions
|
|
@ -25,7 +25,7 @@ Flickable {
|
|||
Keys.onUpPressed: scrollBar.decrease()
|
||||
Keys.onDownPressed: scrollBar.increase()
|
||||
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
ScrollBar.vertical: ScrollBarType {
|
||||
id: scrollBar
|
||||
policy: fl.height >= fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
||||
}
|
||||
|
|
|
|||
11
client/ui/qml/Controls2/ScrollBarType.qml
Normal file
11
client/ui/qml/Controls2/ScrollBarType.qml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
import "./"
|
||||
import "../Controls2"
|
||||
|
||||
ScrollBar {
|
||||
id: root
|
||||
|
||||
policy: ScrollBar.AsNeeded
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue