mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
Don't go QImage -> QPixmap -> QImage
This commit is contained in:
parent
03384c4e19
commit
fad6768955
@ -18,8 +18,8 @@
|
||||
|
||||
#include "audioengine.h"
|
||||
|
||||
#include <QUrl>
|
||||
#include <QNetworkReply>
|
||||
#include <QtCore/QUrl>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
|
||||
#include "playlistinterface.h"
|
||||
#include "sourceplaylistinterface.h"
|
||||
@ -352,9 +352,9 @@ AudioEngine::onNowPlayingInfoReady()
|
||||
|
||||
if ( !m_currentTrack->album().isNull() )
|
||||
{
|
||||
QPixmap cover;
|
||||
QImage cover;
|
||||
cover.loadFromData( m_currentTrack->album()->cover() );
|
||||
playInfo["image"] = QVariant( cover.toImage() );
|
||||
playInfo["image"] = QVariant( cover );
|
||||
}
|
||||
|
||||
Tomahawk::InfoSystem::InfoSystem::instance()->pushInfo(
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include <QtDBus/QDBusArgument>
|
||||
#include <QtDBus/QDBusMetaType>
|
||||
#include <QImage>
|
||||
#include <QtGui/QImage>
|
||||
|
||||
#include "utils/logger.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user