1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

* Indicate invalid PlaylistEntries.

This commit is contained in:
Christian Muehlhaeuser 2012-07-01 20:54:56 +02:00
parent eaf48bcf51
commit c47c8894b0
2 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,7 @@ PlaylistEntry::setQueryVariant( const QVariant& v )
QString artist = m.value( "artist" ).toString();
QString album = m.value( "album" ).toString();
QString track = m.value( "track" ).toString();
m_query = Tomahawk::Query::get( artist, track, album );
}

View File

@ -59,10 +59,11 @@ public:
PlaylistEntry();
virtual ~PlaylistEntry();
bool isValid() const { return !m_query.isNull(); }
void setQuery( const Tomahawk::query_ptr& q );
const Tomahawk::query_ptr& query() const;
// I wish Qt did this for me once i specified the Q_PROPERTIES:
void setQueryVariant( const QVariant& v );
QVariant queryVariant() const;