mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 20:35:52 +08:00
Implement selection
Contributes to issue CURA-8686.
This commit is contained in:
parent
5671b6c61f
commit
59494cdace
@ -108,7 +108,7 @@ Item
|
|||||||
{
|
{
|
||||||
height: UM.Theme.getSize("section").height
|
height: UM.Theme.getSize("section").height
|
||||||
|
|
||||||
color: UM.Theme.getColor((row % 2 == 0) ? "main_background": "viewport_background")
|
color: UM.Theme.getColor((tableScrollView.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background"))
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@ -121,7 +121,14 @@ Item
|
|||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
tableScrollView.currentRow = row; //Select this row.
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user