Commit 3f14bad9 authored by camilo higuita's avatar camilo higuita

more fixes for new page

parent 0cb4a908
This diff is collapsed.
...@@ -114,7 +114,10 @@ void BaseModel::setList(BaseList *value) ...@@ -114,7 +114,10 @@ void BaseModel::setList(BaseList *value)
QVariantMap BaseModel::get(const int &index) const QVariantMap BaseModel::get(const int &index) const
{ {
if(this->mList)
return this->mList->get(index); return this->mList->get(index);
return QVariantMap();
} }
void BaseModel::clear() void BaseModel::clear()
......
...@@ -80,6 +80,8 @@ void PlaylistsModel::setList() ...@@ -80,6 +80,8 @@ void PlaylistsModel::setList()
this->list << this->db->getPlaylists(); this->list << this->db->getPlaylists();
this->list << this->defaultPlaylists(); this->list << this->defaultPlaylists();
qDebug()<< this->list;
// this->sortList(); // this->sortList();
emit this->postListChanged(); emit this->postListChanged();
} }
......
...@@ -14,6 +14,7 @@ Maui.Dialog ...@@ -14,6 +14,7 @@ Maui.Dialog
property var tracks : [] property var tracks : []
maxHeight: 400 * unit maxHeight: 400 * unit
page.padding: space.medium
ColumnLayout ColumnLayout
{ {
......
...@@ -102,6 +102,8 @@ BabeGrid ...@@ -102,6 +102,8 @@ BabeGrid
maxHeight: maxWidth maxHeight: maxWidth
maxWidth: unit * 600 maxWidth: unit * 600
defaultButtons: false defaultButtons: false
page.padding: 0
// verticalAlignment: Qt.AlignBottom // verticalAlignment: Qt.AlignBottom
ColumnLayout ColumnLayout
......
...@@ -108,7 +108,7 @@ ListView ...@@ -108,7 +108,7 @@ ListView
{ {
anchors.fill : parent anchors.fill : parent
preventStealing: true preventStealing: true
parent: applicationWindow().overlay.parent // parent: applicationWindow().overlay.parent
onPressed: onPressed:
{ {
......
...@@ -51,51 +51,50 @@ Maui.Page ...@@ -51,51 +51,50 @@ Maui.Page
id: albumsRoll id: albumsRoll
} }
// footBar.background: Rectangle footBar.background: Item
// { {
// id: footerBg id: footerBg
// clip : true clip : true
// height: footBar.implicitHeight height: footBar.implicitHeight
// color: "transparent"
Image
// Image {
// { id: artworkBg
// id: artworkBg height: parent.height
// height: parent.height width: parent.width
// width: parent.width
sourceSize.width: parent.width
// sourceSize.width: parent.width sourceSize.height: parent.height
// sourceSize.height: parent.height
fillMode: Image.PreserveAspectCrop
// fillMode: Image.PreserveAspectCrop cache: true
// cache: true antialiasing: true
// antialiasing: true smooth: true
// smooth: true asynchronous: true
// asynchronous: true
source: "file://"+encodeURIComponent(currentArtwork)
// source: "file://"+encodeURIComponent(currentArtwork) }
// }
FastBlur
// FastBlur {
// { id: fastBlur
// id: fastBlur anchors.fill: parent
// anchors.fill: parent y:1
// y:1 source: artworkBg
// source: artworkBg radius: 100
// radius: 100 transparentBorder: false
// transparentBorder: false cached: true
// cached: true z:1
// z:1 clip: true
// clip: true
Rectangle
// Rectangle {
// { anchors.fill: parent
// anchors.fill: parent color: viewBackgroundColor
// color: viewBackgroundColor opacity: 0.85
// opacity: 0.85 }
// } }
// } }
// }
ColumnLayout ColumnLayout
......
...@@ -44,6 +44,7 @@ ColumnLayout ...@@ -44,6 +44,7 @@ ColumnLayout
BabeList BabeList
{ {
id: playlistViewModelFilter id: playlistViewModelFilter
// headBarExitIcon: "go-previous"
headBar.leftContent: ToolButton headBar.leftContent: ToolButton
{ {
icon.name: "go-previous" icon.name: "go-previous"
...@@ -58,6 +59,7 @@ ColumnLayout ...@@ -58,6 +59,7 @@ ColumnLayout
Connections Connections
{ {
target: delegate target: delegate
onClicked: {} onClicked: {}
} }
} }
......
...@@ -19,6 +19,8 @@ BabeList ...@@ -19,6 +19,8 @@ BabeList
id: control id: control
property alias list: _playlistsList property alias list: _playlistsList
signal playSync(int index)
title: "Playlists" title: "Playlists"
Maui.NewDialog Maui.NewDialog
...@@ -30,7 +32,6 @@ BabeList ...@@ -30,7 +32,6 @@ BabeList
rejectButton.visible: false rejectButton.visible: false
} }
signal playSync(int index)
headBar.rightContent: Kirigami.ActionToolBar headBar.rightContent: Kirigami.ActionToolBar
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment