Changeset View
Changeset View
Standalone View
Standalone View
src/qml/DataGridView.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: gridView.mainTitle | 27 | property alias mainTitle: gridView.mainTitle | ||
27 | property alias secondaryTitle: gridView.secondaryTitle | 28 | property alias secondaryTitle: gridView.secondaryTitle | ||
Show All 38 Lines | 66 | onReplaceAndPlay: elisa.mediaPlayList.enqueue(databaseId, name, modelType, | |||
66 | ElisaUtils.ReplacePlayList, | 67 | ElisaUtils.ReplacePlayList, | ||
67 | ElisaUtils.TriggerPlay) | 68 | ElisaUtils.TriggerPlay) | ||
68 | 69 | | |||
69 | onOpen: viewManager.openChildView(innerMainTitle, innerSecondaryTitle, innerImage, databaseId, dataType) | 70 | onOpen: viewManager.openChildView(innerMainTitle, innerSecondaryTitle, innerImage, databaseId, dataType) | ||
70 | 71 | | |||
71 | onGoBack: viewManager.goBack() | 72 | onGoBack: viewManager.goBack() | ||
72 | 73 | | |||
73 | Loader { | 74 | Loader { | ||
74 | anchors.fill: parent | 75 | anchors.centerIn: parent | ||
76 | height: Kirigami.Units.gridUnit * 5 | ||||
77 | width: height | ||||
75 | 78 | | |||
76 | visible: realModel.isBusy | 79 | visible: realModel.isBusy | ||
77 | active: realModel.isBusy | 80 | active: realModel.isBusy | ||
78 | 81 | | |||
79 | sourceComponent: BusyIndicator { | 82 | sourceComponent: BusyIndicator { | ||
80 | anchors.fill: parent | 83 | anchors.centerIn: parent | ||
81 | } | 84 | } | ||
82 | } | 85 | } | ||
83 | } | 86 | } | ||
84 | 87 | | |||
85 | Connections { | 88 | Connections { | ||
86 | target: elisa | 89 | target: elisa | ||
87 | 90 | | |||
88 | onMusicManagerChanged: { | 91 | onMusicManagerChanged: { | ||
Show All 40 Lines |