[vlc-commits] qml: always show context button in last column of KeyNavigableTableView
Prince Gupta
git at videolan.org
Wed Jun 24 17:41:56 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Jun 9 20:19:12 2020 +0530| [7544444b037d8676974a8f370b878a0515115dfc] | committer: Pierre Lamot
qml: always show context button in last column of KeyNavigableTableView
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7544444b037d8676974a8f370b878a0515115dfc
---
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
+ }
}
}
More information about the vlc-commits
mailing list