vlc | branch: master | Abel Tesfaye <[email protected]> | Fri Aug 9 17:31:12 2019 +0300| [42b02221f68b44ebfe24b81a92d23ed436528230] | committer: Jean-Baptiste Kempf
qml: use colDelegate on MusicTrackListDisplay Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42b02221f68b44ebfe24b81a92d23ed436528230 --- .../qt/qml/mediacenter/MusicTrackListDisplay.qml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/gui/qt/qml/mediacenter/MusicTrackListDisplay.qml b/modules/gui/qt/qml/mediacenter/MusicTrackListDisplay.qml index 9314cd0ecc..a9ae6a7505 100644 --- a/modules/gui/qt/qml/mediacenter/MusicTrackListDisplay.qml +++ b/modules/gui/qt/qml/mediacenter/MusicTrackListDisplay.qml @@ -59,6 +59,30 @@ Utils.KeyNavigableTableView { property alias parentId: rootmodel.parentId + colDelegate: Item { + anchors.fill: parent + + property var rowModel: parent.rowModel + property var model: parent.colModel + + Text { + anchors.fill:parent + + text: !rowModel ? "" : (rowModel[model.criteria] || "") + elide: Text.ElideRight + font.pixelSize: VLCStyle.fontSize_normal + color: (model.isPrimary)? VLCStyle.colors.text : VLCStyle.colors.textInactive + + anchors { + fill: parent + leftMargin: VLCStyle.margin_xsmall + rightMargin: VLCStyle.margin_xsmall + } + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignLeft + } + } + onActionForSelection: { var list = [] for (var i = 0; i < selection.count; i++ ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
