mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
codestyle
This commit is contained in:
@@ -69,7 +69,7 @@ SnoreNotifyPlugin::SnoreNotifyPlugin()
|
|||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m_snore->primaryNotificationBackend();
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m_snore->primaryNotificationBackend();
|
||||||
|
|
||||||
m_application = Snore::Application( qApp->applicationName(), m_defaultIcon );
|
m_application = Snore::Application( qApp->applicationName(), m_defaultIcon );
|
||||||
m_application.hints().setValue("desktop-entry","tomahawk");
|
m_application.hints().setValue( "desktop-entry" ,"tomahawk" );
|
||||||
|
|
||||||
addAlert( InfoNotifyUser, tr( "Notify User" ) );
|
addAlert( InfoNotifyUser, tr( "Notify User" ) );
|
||||||
addAlert( InfoNowPlaying, tr( "Now Playing" ) );
|
addAlert( InfoNowPlaying, tr( "Now Playing" ) );
|
||||||
@@ -215,7 +215,7 @@ SnoreNotifyPlugin::nowPlaying( const QVariant& input )
|
|||||||
Snore::Icon image;
|
Snore::Icon image;
|
||||||
if ( map.contains( "cover" ) && map[ "cover" ].canConvert< QImage >() )
|
if ( map.contains( "cover" ) && map[ "cover" ].canConvert< QImage >() )
|
||||||
{
|
{
|
||||||
image = Snore::Icon( map[ "cover" ].value<QImage>() );
|
image = Snore::Icon( map[ "cover" ].value< QImage >() );
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << image;
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << image;
|
||||||
}
|
}
|
||||||
notifyUser( InfoNowPlaying, messageText, image );
|
notifyUser( InfoNowPlaying, messageText, image );
|
||||||
|
Reference in New Issue
Block a user