diff --git a/src/qml/MediaAlbumTrackDelegate.qml b/src/qml/MediaAlbumTrackDelegate.qml deleted file mode 100644 index 9dad339d..00000000 --- a/src/qml/MediaAlbumTrackDelegate.qml +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2016-2017 Matthieu Gallien - * Copyright 2017 Alexander Stippich - * - * This program is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see . - */ - -import QtQuick 2.7 -import QtQuick.Layouts 1.2 - -FocusScope { - id: albumTrack - - property alias mediaTrack: mediaTrack - property alias databaseId: mediaTrack.databaseId - property alias title: mediaTrack.title - property alias artist: mediaTrack.artist - property alias album: mediaTrack.album - property alias albumArtist: mediaTrack.albumArtist - property alias duration: mediaTrack.duration - property alias imageUrl: mediaTrack.imageUrl - property alias trackNumber: mediaTrack.trackNumber - property alias discNumber: mediaTrack.discNumber - property alias rating: mediaTrack.rating - property alias isFirstTrackOfDisc: mediaTrack.isFirstTrackOfDisc - property alias isSingleDiscAlbum: mediaTrack.isSingleDiscAlbum - property alias isSelected: mediaTrack.isSelected - property alias isAlternateColor: mediaTrack.isAlternateColor - - Accessible.role: Accessible.ListItem - Accessible.name: title - Accessible.description: title - - ColumnLayout { - anchors.fill: parent - - spacing: 0 - - Rectangle { - Layout.preferredHeight: elisaTheme.delegateHeight - Layout.minimumHeight: elisaTheme.delegateHeight - Layout.maximumHeight: elisaTheme.delegateHeight - Layout.fillWidth: true - color: (isAlternateColor ? myPalette.alternateBase : myPalette.base) - - visible: isFirstTrackOfDisc && !isSingleDiscAlbum - - LabelWithToolTip { - id: discHeaderLabel - - text: 'CD ' + discNumber - - font.weight: Font.Bold - font.italic: true - color: myPalette.text - - anchors.fill: parent - anchors.topMargin: elisaTheme.layoutVerticalMargin - anchors.leftMargin: elisaTheme.layoutHorizontalMargin - - elide: Text.ElideRight - } - } - - MediaTrackDelegate { - id: mediaTrack - - Layout.preferredHeight: elisaTheme.delegateHeight - Layout.minimumHeight: elisaTheme.delegateHeight - Layout.maximumHeight: elisaTheme.delegateHeight - Layout.fillWidth: true - - focus: true - - detailedView: false - } - } -}