mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Use QStackedLayout instead of show/hide for play/pause widget. Fixes flicker. Extra 2px of spacing i can't get rid of... will work harder. TWK-128
This commit is contained in:
@@ -909,3 +909,13 @@ GlobalActionManager::openSpotifyLink( const QString& link )
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
GlobalActionManager::openRdioLink( const QString& link )
|
||||
{
|
||||
// RdioParser* rdio = new RdioParser( link, this );
|
||||
// connect( spot, SIGNAL( track( Tomahawk::query_ptr ) ), this, SLOT( handleOpenTrack( Tomahawk::query_ptr ) ) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -44,6 +44,9 @@ public:
|
||||
/// Takes a spotify link and performs the default open action on it
|
||||
bool openSpotifyLink( const QString& link );
|
||||
|
||||
/// Takes a spotify link and performs the default open action on it
|
||||
bool openRdioLink( const QString& link );
|
||||
|
||||
void copyToClipboard( const Tomahawk::query_ptr& query ) const;
|
||||
QString copyPlaylistToClipboard( const Tomahawk::dynplaylist_ptr& playlist );
|
||||
void savePlaylistToFile( const Tomahawk::playlist_ptr& playlist, const QString& filename );
|
||||
|
@@ -525,6 +525,8 @@ TomahawkApp::loadUrl( const QString& url )
|
||||
return GlobalActionManager::instance()->parseTomahawkLink( url );
|
||||
else if ( url.contains( "open.spotify.com" ) || url.contains( "spotify:track" ) )
|
||||
return GlobalActionManager::instance()->openSpotifyLink( url );
|
||||
else if ( url.contains( "www.rdio.com" ) )
|
||||
return GlobalActionManager::instance()->openRdioLink( url );
|
||||
else
|
||||
{
|
||||
QFile f( url );
|
||||
|
Reference in New Issue
Block a user