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