add ScrollBarType
This commit is contained in:
parent
f992252c6e
commit
87d00116e1
9 changed files with 19 additions and 16 deletions
|
|
@ -151,6 +151,7 @@
|
||||||
<file>ui/qml/Controls2/PageType.qml</file>
|
<file>ui/qml/Controls2/PageType.qml</file>
|
||||||
<file>ui/qml/Controls2/PopupType.qml</file>
|
<file>ui/qml/Controls2/PopupType.qml</file>
|
||||||
<file>ui/qml/Controls2/ProgressBarType.qml</file>
|
<file>ui/qml/Controls2/ProgressBarType.qml</file>
|
||||||
|
<file>ui/qml/Controls2/ScrollBarType.qml</file>
|
||||||
<file>ui/qml/Controls2/StackViewType.qml</file>
|
<file>ui/qml/Controls2/StackViewType.qml</file>
|
||||||
<file>ui/qml/Controls2/SwitcherType.qml</file>
|
<file>ui/qml/Controls2/SwitcherType.qml</file>
|
||||||
<file>ui/qml/Controls2/TabButtonType.qml</file>
|
<file>ui/qml/Controls2/TabButtonType.qml</file>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ ListView {
|
||||||
|
|
||||||
// snapMode: ListView.SnapToItem
|
// snapMode: ListView.SnapToItem
|
||||||
|
|
||||||
// ScrollBar.vertical: ScrollBar {}
|
ScrollBar.vertical: ScrollBarType {}
|
||||||
|
|
||||||
property bool isFocusable: true
|
property bool isFocusable: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,10 +81,7 @@ DrawerType2 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBarType {}
|
||||||
id: scrollBar
|
|
||||||
policy: ScrollBar.AlwaysOn
|
|
||||||
}
|
|
||||||
|
|
||||||
ButtonGroup {
|
ButtonGroup {
|
||||||
id: buttonGroup
|
id: buttonGroup
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ ListView {
|
||||||
model: ServersModel
|
model: ServersModel
|
||||||
currentIndex: ServersModel.defaultIndex
|
currentIndex: ServersModel.defaultIndex
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBarType {
|
||||||
id: scrollBar
|
id: scrollBar
|
||||||
objectName: "scrollBar"
|
objectName: "scrollBar"
|
||||||
policy: root.height >= root.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
policy: root.height >= root.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
||||||
|
|
|
||||||
|
|
@ -85,9 +85,7 @@ DrawerType2 {
|
||||||
FocusController.nextKeyRightItem()
|
FocusController.nextKeyRightItem()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBarType {}
|
||||||
policy: ScrollBar.AsNeeded
|
|
||||||
}
|
|
||||||
|
|
||||||
model: 1
|
model: 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ Flickable {
|
||||||
Keys.onUpPressed: scrollBar.decrease()
|
Keys.onUpPressed: scrollBar.decrease()
|
||||||
Keys.onDownPressed: scrollBar.increase()
|
Keys.onDownPressed: scrollBar.increase()
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBarType {
|
||||||
id: scrollBar
|
id: scrollBar
|
||||||
policy: fl.height >= fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
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
|
||||||
|
}
|
||||||
|
|
@ -115,9 +115,7 @@ PageType {
|
||||||
FocusController.nextKeyRightItem()
|
FocusController.nextKeyRightItem()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBarType {}
|
||||||
policy: ScrollBar.AsNeeded
|
|
||||||
}
|
|
||||||
|
|
||||||
model: contacts
|
model: contacts
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,9 +122,7 @@ PageType {
|
||||||
FocusController.nextKeyRightItem()
|
FocusController.nextKeyRightItem()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBarType {}
|
||||||
policy: ScrollBar.AsNeeded
|
|
||||||
}
|
|
||||||
|
|
||||||
model: logTypes
|
model: logTypes
|
||||||
spacing: 24
|
spacing: 24
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue