FlickableType added
This commit is contained in:
parent
9222877306
commit
804a790392
21 changed files with 34 additions and 23 deletions
14
client/ui/qml/Controls/FlickableType.qml
Normal file
14
client/ui/qml/Controls/FlickableType.qml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
|
||||
Flickable {
|
||||
id: fl
|
||||
|
||||
Keys.onUpPressed: scrollBar.decrease()
|
||||
Keys.onDownPressed: scrollBar.increase()
|
||||
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
id: scrollBar
|
||||
policy: fl.height > fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue