From 86b73ca662907e5a977db73a914f957b9f52be56 Mon Sep 17 00:00:00 2001 From: Yury Shuvakin Date: Sun, 28 Aug 2022 20:25:02 +0300 Subject: [PATCH] Now the line is highlighted with a dotted line when hovering over it in the legend --- qml/Screens/VisualizationScreen.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qml/Screens/VisualizationScreen.qml b/qml/Screens/VisualizationScreen.qml index 2524440..4bc7748 100644 --- a/qml/Screens/VisualizationScreen.qml +++ b/qml/Screens/VisualizationScreen.qml @@ -99,6 +99,15 @@ ColumnLayout { chartItem.series(modelData).opacity = 0 } } + + onHoveredChanged: { + if (hovered) { + chartItem.series(modelData).style = Qt.DashLine + } else { + chartItem.series(modelData).style = Qt.SolidLine + } + } + Layout.fillWidth: !horizontal }