Commit b05f0867 authored by Camilo Higuita's avatar Camilo Higuita

connect searcView signals and scan for information

parent 5a6f3a0d
......@@ -92,7 +92,7 @@ ApplicationWindow
{
id: searchBox
width: parent.width
height: 40
height: 48
color: bae.midColor()
TextInput
......@@ -236,6 +236,12 @@ ApplicationWindow
SearchTable
{
id: searchView
Connections
{
target: searchView
onRowClicked: Player.addTrack(searchView.model.get(index))
onQuickPlayTrack: Player.quickPlay(searchView.model.get(index))
}
}
}
......
......@@ -63,7 +63,8 @@ settings::settings(QObject *parent) : QObject(parent)
if(BAE::isMobile())
this->populateDB({BAE::MusicPath, BAE::DownloadsPath});
else
checkCollection();
connect(this->brainDeamon, &Brain::finished, [this]()
{
......@@ -138,7 +139,7 @@ void settings::on_remove_clicked()
void settings::refreshCollectionPaths()
{
auto queryTxt = QString("SELECT %1 FROM %2").arg(BAE::KEYMAP[BAE::KEY::URL], BAE::TABLEMAP[BAE::TABLE::SOURCES]);
// auto queryTxt = QString("SELECT %1 FROM %2").arg(BAE::KEYMAP[BAE::KEY::URL], BAE::TABLEMAP[BAE::TABLE::SOURCES]);
// for (auto track : this->connection->getDBData(queryTxt))
// {
......@@ -201,8 +202,8 @@ void settings::handleDirectoryChanged(const QString &dir)
void settings::checkCollection()
{
this->refreshCollectionPaths();
this->collectionWatcher();
// this->refreshCollectionPaths();
// this->collectionWatcher();
this->brainzOn = true;
this->startBrainz(1500);
}
......
......@@ -288,6 +288,39 @@ Item
anchors.fill: parent
focus: true
pushEnter: Transition {
PropertyAnimation {
property: "opacity"
from: 0
to:1
duration: 200
}
}
pushExit: Transition {
PropertyAnimation {
property: "opacity"
from: 1
to:0
duration: 200
}
}
popEnter: Transition {
PropertyAnimation {
property: "opacity"
from: 0
to:1
duration: 200
}
}
popExit: Transition {
PropertyAnimation {
property: "opacity"
from: 1
to:0
duration: 200
}
}
initialItem: BabeTable
{
id: list
......
......@@ -29,7 +29,7 @@ Pane
Rectangle
{
anchors.centerIn: parent
visible : !bae.isMobile()
width: parent.width /2
height: parent.height/2
border.color: "#dedede"
......
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