Added interactions for clusters/filters

This commit is contained in:
emeric
2018-05-07 14:04:03 +02:00
parent eedcb1c2b5
commit 87c2f2936f
6 changed files with 50 additions and 13 deletions
+8 -1
View File
@@ -79,7 +79,14 @@ Artist::refresh()
auto clusters = artist->getClusters(3);
for (auto cluster : clusters)
clusterContainers->addWidget(LmsApp->createCluster(cluster));
{
auto clusterId = cluster.id();
auto entry = clusterContainers->addWidget(LmsApp->createCluster(cluster));
entry->clicked().connect([=]
{
_filters->add(clusterId);
});
}
}
t->bindString("name", Wt::WString::fromUTF8(artist->getName()), Wt::TextFormat::Plain);