Commit 8d5635fb authored by camilo higuita's avatar camilo higuita

fixes on actually using now the template mauikti model to get items

parent 4f6d7cb7
......@@ -399,7 +399,7 @@ Maui.ApplicationWindow
sideBar: Maui.AbstractSideBar
{
id: _drawer
width: visible ? Math.min(Kirigami.Units.gridUnit * 15, root.width) : 0
width: visible ? Math.min(Kirigami.Units.gridUnit * (Kirigami.Settings.isMobile? 18 : 15), root.width) : 0
modal: !isWide
height: _drawer.modal ? implicitHeight - _mainPage.footer.height : implicitHeight
......
......@@ -9,7 +9,7 @@ AlbumsModel::AlbumsModel(QObject *parent) : MauiList(parent),
void AlbumsModel::componentComplete()
{
this->setList();
this->setList();
connect(this, &AlbumsModel::queryChanged, this, &AlbumsModel::setList);
}
......@@ -122,8 +122,8 @@ void AlbumsModel::setList()
this->sortList();
emit this->postListChanged();
//if(this->query == AlbumsModel::QUERY::ALBUMS)
//this->fetchInformation();
if(this->query == AlbumsModel::QUERY::ALBUMS)
this->fetchInformation();
}
void AlbumsModel::fetchInformation()
......@@ -222,7 +222,7 @@ void AlbumsModel::fetchInformation()
}
qDebug()<< "DISCONNET SIGNAL";
// disconnect(this, SIGNAL(destroyed()));
// disconnect(this, SIGNAL(destroyed()));
};
QFuture<void> t1 = QtConcurrent::run(func);
......
......@@ -341,7 +341,7 @@ BabeList
width: listView.width
number : trackNumberVisible ? true : false
coverArt : coverArtVisible ? (control.width > 300) : coverArtVisible
coverArt : coverArtVisible ? (control.width > 200) : coverArtVisible
onPressAndHold: if(Kirigami.Settings.isMobile && allowMenu) openItemMenu(index)
onRightClicked: if(allowMenu) openItemMenu(index)
......
......@@ -101,8 +101,8 @@ BabeGrid
{
id: albumDialog
parent: parent
maxHeight: maxWidth
maxWidth: Maui.Style.unit * 600
maxHeight: Math.min(Maui.Style.unit * 600, albumsViewTable.listView.contentHeight + albumsViewTable.headBar.height + (Maui.Style.space.huge*2))
widthHint: 0.9
heightHint: 0.9
defaultButtons: false
......
......@@ -64,13 +64,8 @@ Maui.Dialog
verticalAlignment: Qt.AlignVCenter
textFormat: Text.RichText
wrapMode: Text.Wrap
// activeFocusOnPress : true
// selectByMouse : true
// cursorPosition :0
// cursorVisible: true
}
}
}
Rectangle
......
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