1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 09:49:42 +01: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:
Leo Franchi 2011-08-10 22:52:50 -04:00
parent c7333a2f1f
commit 3a890ee929
3 changed files with 15 additions and 0 deletions

@ -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 );