mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[ui] Add MScrollBar for better visibility
Always visible if height or width need it, with specific colors for hovered and pressed behaviors.
This commit is contained in:
parent
eb3ac6cd50
commit
f8d963e0b0
11 changed files with 44 additions and 39 deletions
|
@ -26,17 +26,6 @@ Item {
|
|||
uigraph.selectedNode = node
|
||||
}
|
||||
|
||||
ScrollBar {
|
||||
id: hbar
|
||||
hoverEnabled: true
|
||||
active: true
|
||||
orientation: Qt.Horizontal
|
||||
size: root.width / taskList.width
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: nbMetrics
|
||||
text: root.taskManager ? root.taskManager.nodes.count : "0"
|
||||
|
@ -65,7 +54,7 @@ Item {
|
|||
ListView {
|
||||
id: taskList
|
||||
anchors.fill: parent
|
||||
ScrollBar.vertical: ScrollBar {}
|
||||
ScrollBar.vertical: MScrollBar {}
|
||||
|
||||
model: parent.taskManager ? parent.taskManager.nodes : null
|
||||
spacing: 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue