diff --git a/modules/gui/qt/medialibrary/qml/MusicArtist.qml b/modules/gui/qt/medialibrary/qml/MusicArtist.qml index 29eeff3ed62aac9ec4c4047e0ad33cc5d8c73559..700f6ec165f16cca75637d78a600f47f7801d8e8 100644 --- a/modules/gui/qt/medialibrary/qml/MusicArtist.qml +++ b/modules/gui/qt/medialibrary/qml/MusicArtist.qml @@ -424,9 +424,6 @@ FocusScope { clip: true // content may overflow if not enough space is provided model: trackModel - selectionModel: ListSelectionModel { - model: trackModel - } onActionForSelection: { model.addAndPlay(selection) diff --git a/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml index f78d45e3dc83b7f3e7747c017ceba8ea9b3d0e21..c85151fb3d78af7409351be82c99790a69fff62e 100644 --- a/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml +++ b/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml @@ -178,9 +178,6 @@ Widgets.KeyNavigableTableView { section.property: "title_first_symbol" model: rootmodel - selectionModel: ListSelectionModel { - model: rootmodel - } rowHeight: VLCStyle.tableCoverRow_height onActionForSelection: model.addAndPlay(selection) diff --git a/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml b/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml index aabcc810639641938ef8adb9c581ba1ecb1531d4..fa2771fab833fc56e8f48a55e3d552aa72d822e7 100644 --- a/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml +++ b/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml @@ -161,10 +161,6 @@ FocusScope { model: root.model - selectionModel: ListSelectionModel { - model: root.model - } - dragItem: root.dragItem isMusic: root.isMusic diff --git a/modules/gui/qt/medialibrary/qml/UrlListDisplay.qml b/modules/gui/qt/medialibrary/qml/UrlListDisplay.qml index 340815e38017194ab55896a0f70182f132a286cf..0d71a026fca7168e9d252031afb01c28c0705377 100644 --- a/modules/gui/qt/medialibrary/qml/UrlListDisplay.qml +++ b/modules/gui/qt/medialibrary/qml/UrlListDisplay.qml @@ -49,9 +49,6 @@ Widgets.KeyNavigableTableView { visible: urlModel.count > 0 model: urlModel - selectionModel: ListSelectionModel { - model: urlModel - } sortModel: [{ size: Math.max(listView_id._nbCols - 1, 1), diff --git a/modules/gui/qt/network/qml/ServicesSources.qml b/modules/gui/qt/network/qml/ServicesSources.qml index 6a4a16d7709c63b66bd59915c42f9d3731f3fd0d..54be9c3986fda440f38aed9e4a0b10b38b16ddd1 100644 --- a/modules/gui/qt/network/qml/ServicesSources.qml +++ b/modules/gui/qt/network/qml/ServicesSources.qml @@ -96,7 +96,7 @@ MainInterface.MainGridView { } onItemClicked : { - selectionModel.updateSelection(modifier , root.currentIndex, index) + root.selectionModel.updateSelection(modifier, root.currentIndex, index) root.currentIndex = index root.forceActiveFocus() } diff --git a/modules/gui/qt/widgets/qml/ExpandGridView.qml b/modules/gui/qt/widgets/qml/ExpandGridView.qml index d608fddc1d6c74a38218c2a48bdb36c7b3359a49..867796af951fa78e4093fbd7b181ba9faa3f847f 100644 --- a/modules/gui/qt/widgets/qml/ExpandGridView.qml +++ b/modules/gui/qt/widgets/qml/ExpandGridView.qml @@ -71,7 +71,10 @@ FocusScope { readonly property int _contentWidth: width - rightMargin - leftMargin - property ListSelectionModel selectionModel + property ListSelectionModel selectionModel: ListSelectionModel { + model: root.model + } + property QtAbstractItemModel model property int currentIndex: 0 diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml index f9ebb68104f97b7551f92fadbbf0f70140df2fbb..214d9102a0f98d17f30ae038ef04235a911a56df 100644 --- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml +++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml @@ -73,7 +73,10 @@ FocusScope { property color headerColor: colorContext.bg.primary property int headerTopPadding: 0 - property ListSelectionModel selectionModel + property ListSelectionModel selectionModel: ListSelectionModel { + model: root.model + } + property real rowHeight: VLCStyle.tableRow_height property real availableRowWidth: 0