Changeset View
Changeset View
Standalone View
Standalone View
src/qml/TracksView.qml
Show All 11 Lines | |||||
12 | * Lesser General Public License for more details. | 12 | * Lesser General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | import QtQuick 2.10 | 18 | import QtQuick 2.10 | ||
19 | import QtQuick.Controls 2.3 | 19 | import QtQuick.Controls 2.3 | ||
20 | import org.kde.kirigami 2.5 as Kirigami | ||||
20 | import org.kde.elisa 1.0 | 21 | import org.kde.elisa 1.0 | ||
21 | 22 | | |||
22 | FocusScope { | 23 | FocusScope { | ||
23 | id: viewHeader | 24 | id: viewHeader | ||
24 | 25 | | |||
25 | property var viewType | 26 | property var viewType | ||
26 | property alias mainTitle: listView.mainTitle | 27 | property alias mainTitle: listView.mainTitle | ||
27 | property alias image: listView.image | 28 | property alias image: listView.image | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 56 | delegate: MediaTrackDelegate { | |||
80 | onReplaceAndPlay: elisa.mediaPlayList.enqueue(databaseId, name, modelType, | 81 | onReplaceAndPlay: elisa.mediaPlayList.enqueue(databaseId, name, modelType, | ||
81 | ElisaUtils.ReplacePlayList, | 82 | ElisaUtils.ReplacePlayList, | ||
82 | ElisaUtils.TriggerPlay) | 83 | ElisaUtils.TriggerPlay) | ||
83 | 84 | | |||
84 | onClicked: contentDirectoryView.currentIndex = index | 85 | onClicked: contentDirectoryView.currentIndex = index | ||
85 | } | 86 | } | ||
86 | 87 | | |||
87 | Loader { | 88 | Loader { | ||
88 | anchors.fill: parent | 89 | anchors.centerIn: parent | ||
90 | height: Kirigami.Units.gridUnit * 5 | ||||
91 | width: height | ||||
89 | 92 | | |||
90 | visible: realModel.isBusy | 93 | visible: realModel.isBusy | ||
91 | active: realModel.isBusy | 94 | active: realModel.isBusy | ||
92 | 95 | | |||
93 | sourceComponent: BusyIndicator { | 96 | sourceComponent: BusyIndicator { | ||
94 | anchors.fill: parent | 97 | anchors.centerIn: parent | ||
95 | } | 98 | } | ||
96 | } | 99 | } | ||
97 | } | 100 | } | ||
98 | 101 | | |||
99 | Connections { | 102 | Connections { | ||
100 | target: elisa | 103 | target: elisa | ||
101 | 104 | | |||
102 | onMusicManagerChanged: realModel.initialize(elisa.musicManager, | 105 | onMusicManagerChanged: realModel.initialize(elisa.musicManager, | ||
Show All 11 Lines |