1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

* Create those darned controls manually.

This commit is contained in:
Christian Muehlhaeuser
2013-06-29 19:46:55 +02:00
committed by Michael Zanetti
parent 6378a1658d
commit a4fee407a4

View File

@@ -274,6 +274,22 @@ EchonestGenerator::startFromArtist( const Tomahawk::artist_ptr& artist )
Echonest::DynamicPlaylist::PlaylistParams params;
params << data;
/* Q_PROPERTY( QString type READ type WRITE setType ) // the generator type associated with this control
Q_PROPERTY( QString id READ id WRITE setId )
Q_PROPERTY( QString selectedType READ selectedType WRITE setSelectedType )
Q_PROPERTY( QString match READ match WRITE setMatch )
Q_PROPERTY( QString input READ input WRITE setInput )
Q_PROPERTY( QString summary READ summary ) // a summary of the control in phrase form*/
QVariantMap controlsList;
controlsList[ "id" ] = uuid();
controlsList[ "selectedType" ] = "echonest";
controlsList[ "match" ] = QString::number( data.first );
controlsList[ "input" ] = data.second;
controlsList[ "summary" ] = "";
setControls( QVariantList() << controlsList );
// params.append( Echonest::DynamicPlaylist::PlaylistParamData( Echonest::DynamicPlaylist::Type, Echonest::DynamicPlaylist::SongRadioType ) );
emit paramsGenerated( params );