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)
QVariantMap BaseModel::get(const int &index) const
{
if(this->mList)
return this->mList->get(index);
return QVariantMap();
}
void BaseModel::clear()
......
......@@ -80,6 +80,8 @@ void PlaylistsModel::setList()
this->list << this->db->getPlaylists();
this->list << this->defaultPlaylists();
qDebug()<< this->list;
// this->sortList();
emit this->postListChanged();
}
......
......@@ -14,6 +14,7 @@ Maui.Dialog
property var tracks : []
maxHeight: 400 * unit
page.padding: space.medium
ColumnLayout
{
......
......@@ -102,6 +102,8 @@ BabeGrid
maxHeight: maxWidth
maxWidth: unit * 600
defaultButtons: false
page.padding: 0
// verticalAlignment: Qt.AlignBottom
ColumnLayout
......
......@@ -108,7 +108,7 @@ ListView
{
anchors.fill : parent
preventStealing: true
parent: applicationWindow().overlay.parent
// parent: applicationWindow().overlay.parent
onPressed:
{
......
......@@ -51,51 +51,50 @@ Maui.Page
id: albumsRoll
}
// footBar.background: Rectangle
// {
// id: footerBg
// clip : true
// height: footBar.implicitHeight
// color: "transparent"
// Image
// {
// id: artworkBg
// height: parent.height
// width: parent.width
// sourceSize.width: parent.width
// sourceSize.height: parent.height
// fillMode: Image.PreserveAspectCrop
// cache: true
// antialiasing: true
// smooth: true
// asynchronous: true
// source: "file://"+encodeURIComponent(currentArtwork)
// }
// FastBlur
// {
// id: fastBlur
// anchors.fill: parent
// y:1
// source: artworkBg
// radius: 100
// transparentBorder: false
// cached: true
// z:1
// clip: true
// Rectangle
// {
// anchors.fill: parent
// color: viewBackgroundColor
// opacity: 0.85
// }
// }
// }
footBar.background: Item
{
id: footerBg
clip : true
height: footBar.implicitHeight
Image
{
id: artworkBg
height: parent.height
width: parent.width
sourceSize.width: parent.width
sourceSize.height: parent.height
fillMode: Image.PreserveAspectCrop
cache: true
antialiasing: true
smooth: true
asynchronous: true
source: "file://"+encodeURIComponent(currentArtwork)
}
FastBlur
{
id: fastBlur
anchors.fill: parent
y:1
source: artworkBg
radius: 100
transparentBorder: false
cached: true
z:1
clip: true
Rectangle
{
anchors.fill: parent
color: viewBackgroundColor
opacity: 0.85
}
}
}
ColumnLayout
......
......@@ -44,6 +44,7 @@ ColumnLayout
BabeList
{
id: playlistViewModelFilter
// headBarExitIcon: "go-previous"
headBar.leftContent: ToolButton
{
icon.name: "go-previous"
......@@ -58,6 +59,7 @@ ColumnLayout
Connections
{
target: delegate
onClicked: {}
}
}
......
......@@ -19,6 +19,8 @@ BabeList
id: control
property alias list: _playlistsList
signal playSync(int index)
title: "Playlists"
Maui.NewDialog
......@@ -30,7 +32,6 @@ BabeList
rejectButton.visible: false
}
signal playSync(int index)
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