[vlc-devel] [PATCH 07/17] qml: always show context button in last column of KeyNavigableTableView
Prince Gupta
guptaprince8832 at gmail.com
Fri Jun 19 16:06:20 CEST 2020
---
modules/gui/qt/widgets/qml/KeyNavigableTableView.qml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index f1bd762f39..0b48747df6 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -263,6 +263,18 @@ NavigableFocusScope {
}
}
}
+
+ Widgets.ContextButton {
+ anchors.right: content.right
+ anchors.top: content.top
+ anchors.bottom: content.bottom
+ backgroundColor: hovered || activeFocus ?
+ VLCStyle.colors.getBgColor( lineView.selected, hovered,
+ activeFocus ) : "transparent"
+
+ onClicked: root.contextMenuButtonClicked(this, lineView.rowModel)
+ visible: hoverArea.containsMouse
+ }
}
}
--
2.25.1
More information about the vlc-devel
mailing list