Commit 2e445521 authored by camilo higuita's avatar camilo higuita

correctly adding the filter bar to the tables that make sense and now only load three views

parent 5e73ae8a
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
Item
......
This diff is collapsed.
......@@ -9,6 +9,7 @@ AlbumsModel::AlbumsModel(QObject *parent) : MauiList(parent),
void AlbumsModel::componentComplete()
{
this->setList();
connect(this, &AlbumsModel::queryChanged, this, &AlbumsModel::setList);
}
......@@ -121,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()
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../utils/Help.js" as H
import org.kde.mauikit 1.0 as Maui
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.kirigami 2.2 as Kirigami
import org.kde.mauikit 1.0 as Maui
import "../../utils"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../view_models"
import "../../view_models/BabeTable"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import QtWebEngine 1.5
import "../../../view_models"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../../view_models"
import "../../../view_models/BabeTable"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../view_models"
import "../../view_models/BabeTable"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../view_models"
import QtWebEngine 1.5
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../view_models"
import QtWebView 1.1
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../view_models"
......
......@@ -44,10 +44,7 @@ function refreshCollection(size)
{
if(size>0) root.notify("emblem-info", "Collection updated", size+" new tracks added...")
refreshTracks()
refreshAlbums()
refreshArtists()
refreshFolders()
}
function refreshFolders()
......
import QtQuick 2.9
import QtQuick 2.10
import QtGraphicalEffects 1.0
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import AlbumsList 1.0
import org.kde.kirigami 2.7 as Kirigami
......
import QtQuick.Controls 2.2
import QtQuick 2.9
import QtQuick.Controls 2.10
import QtQuick 2.10
import ".."
import org.kde.kirigami 2.7 as Kirigami
import org.kde.mauikit 1.0 as Maui
......
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.6 as Kirigami
import org.kde.mauikit 1.0 as Maui
......@@ -28,5 +28,8 @@ Maui.Page
anchors.fill: parent
holder.visible: count === 0
topMargin: Maui.Style.space.medium
listView.headerPositioning: ListView.PullBackHeader
Kirigami.Theme.colorSet: Kirigami.Theme.Window
Kirigami.Theme.inherit: false
}
}
......@@ -77,7 +77,7 @@ BabeList
{
id: sortBtn
icon.name: "view-sort"
visible: listView.count > 2
MenuItem
{
text: qsTr("Title")
......@@ -179,22 +179,23 @@ BabeList
id: _filterButton
icon.name: "view-filter"
checkable: true
visible: listView.count > 10
}
]
// listView.headerPositioning: ListView.PullBackHeader
// listView.headerPositioning: ListView.PullBackHeader
listView.header: Maui.ToolBar
{
Kirigami.Theme.backgroundColor: control.Kirigami.Theme.backgroundColor
visible: _filterButton.checked
width: control.width
position: ToolBar.Header
z: listView.z + 9
middleContent: Maui.TextField
{
Layout.fillWidth: true
}
}
Maui.Dialog
......@@ -314,7 +315,6 @@ BabeList
}
}
Maui.BaseModel
{
id: _tracksModel
......@@ -401,7 +401,6 @@ BabeList
}
onCleared: delegate.isSelected = false
}
}
......@@ -445,7 +444,7 @@ BabeList
{
swipeView.currentIndex = viewsIndex.albums
const item = list.get(listView.currentIndex)
albumsView.populateTable(item.album, item.artist)
swipeView.currentItem.item.populateTable(item.album, item.artist)
contextMenu.close()
}
......@@ -453,7 +452,7 @@ BabeList
{
swipeView.currentIndex = viewsIndex.artists
const item = list.get(listView.currentIndex)
artistsView.populateTable(undefined, item.artist)
swipeView.currentItem.item.populateTable(undefined, item.artist)
contextMenu.close()
}
......
import QtQuick 2.0
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.kirigami 2.2 as Kirigami
import org.kde.mauikit 1.0 as Maui
import QtQuick.Layouts 1.3
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.3
import QtQuick.Controls 2.10
import QtGraphicalEffects 1.0
import org.kde.kirigami 2.7 as Kirigami
......
import QtQuick 2.0
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../../utils"
import ".."
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.mauikit 1.0 as Maui
Item
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../view_models/BabeGrid"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.mauikit 1.0 as Maui
import org.kde.kirigami 2.7 as Kirigami
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import org.kde.kirigami 2.7 as Kirigami
......
......@@ -21,7 +21,7 @@ Rectangle
focus: true
Component.onCompleted:
{
_drawer.close()
_drawer.visible = false
forceActiveFocus()
}
......@@ -110,7 +110,7 @@ Rectangle
Rectangle
{
id: _bg
width: parent.width * 0.7
width: parent.height * 0.7
height: width
anchors.centerIn: parent
radius: Maui.Style.radiusV
......@@ -132,15 +132,13 @@ Rectangle
Image
{
id: _image
width: parent.width * 0.7
width: parent.height * 0.7
height: width
anchors.centerIn: parent
sourceSize.width: height
sourceSize.height: height
fillMode: Image.PreserveAspectFit
antialiasing: false
smooth: true
......
import QtQuick 2.0
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.mauikit 1.0 as Maui
import "../view_models/BabeTable"
import "../db/Queries.js" as Q
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import org.kde.mauikit 1.0 as Maui
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import org.kde.mauikit 1.0 as Maui
Item
......
import QtQuick.Controls 2.2
import QtQuick 2.9
import QtQuick.Controls 2.10
import QtQuick 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import org.kde.mauikit 1.0 as Maui
......@@ -63,7 +63,7 @@ Maui.ToolBar
}
}
middleContent: ListView
middleContent: ListView
{
id: _listView
Layout.fillWidth: true
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import org.kde.mauikit 1.0 as Maui
Menu
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.kirigami 2.7 as Kirigami
import org.kde.mauikit 1.0 as Maui
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.kirigami 2.6 as Kirigami
import org.kde.mauikit 1.0 as Maui
import PlaylistsList 1.0
......
import QtQuick 2.0
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.mauikit 1.0 as Maui
import "../../view_models"
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import org.kde.kirigami 2.2 as Kirigami
import org.kde.mauikit 1.0 as Maui
import QtQuick.Layouts 1.3
......
import QtQuick 2.0
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import "../utils"
import ".."
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls 2.10
import org.kde.mauikit 1.0 as Maui
import "../../view_models"
import "../../utils/Help.js" as H
......
import QtQuick 2.9
import QtQuick 2.10
import QtQuick.Controls 2.12
import org.kde.mauikit 1.0 as Maui
import "../view_models/BabeTable"
import "../view_models"
......
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