mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Don't go QImage -> QPixmap -> QImage
This commit is contained in:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user