Changeset View
Changeset View
Standalone View
Standalone View
src/qml/AlbumView.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: albumGridView.mainTitle | 27 | property alias mainTitle: albumGridView.mainTitle | ||
27 | property alias secondaryTitle: albumGridView.secondaryTitle | 28 | property alias secondaryTitle: albumGridView.secondaryTitle | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 44 | ListBrowserView { | |||
92 | 93 | | |||
93 | onShowArtist: { | 94 | onShowArtist: { | ||
94 | viewManager.openChildView(secondaryTitle, '', elisaTheme.artistIcon, 0, ElisaUtils.Artist) | 95 | viewManager.openChildView(secondaryTitle, '', elisaTheme.artistIcon, 0, ElisaUtils.Artist) | ||
95 | } | 96 | } | ||
96 | 97 | | |||
97 | onGoBack: viewManager.goBack() | 98 | onGoBack: viewManager.goBack() | ||
98 | 99 | | |||
99 | Loader { | 100 | Loader { | ||
100 | anchors.fill: parent | 101 | anchors.centerIn: parent | ||
102 | height: Kirigami.Units.gridUnit * 5 | ||||
103 | width: height | ||||
101 | 104 | | |||
102 | visible: realModel.isBusy | 105 | visible: realModel.isBusy | ||
103 | active: realModel.isBusy | 106 | active: realModel.isBusy | ||
104 | 107 | | |||
105 | sourceComponent: BusyIndicator { | 108 | sourceComponent: BusyIndicator { | ||
106 | anchors.fill: parent | 109 | anchors.centerIn: parent | ||
107 | } | 110 | } | ||
108 | } | 111 | } | ||
109 | } | 112 | } | ||
110 | 113 | | |||
111 | Connections { | 114 | Connections { | ||
112 | target: elisa | 115 | target: elisa | ||
113 | 116 | | |||
114 | onMusicManagerChanged: realModel.initializeById(elisa.musicManager, elisa.musicManager.viewDatabase, | 117 | onMusicManagerChanged: realModel.initializeById(elisa.musicManager, elisa.musicManager.viewDatabase, | ||
Show All 10 Lines |