1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

* Fixed ShortenedLinkParser for headless.

This commit is contained in:
Christian Muehlhaeuser
2012-06-08 20:03:12 +02:00
parent 320182427f
commit eecf2c38d2
2 changed files with 14 additions and 4 deletions

View File

@@ -69,8 +69,9 @@ ShortenedLinkParser::handlesUrl( const QString& url )
url.contains( "rd.io" ) ); url.contains( "rd.io" ) );
} }
void void
ShortenedLinkParser::lookupUrl ( const QString& url ) ShortenedLinkParser::lookupUrl( const QString& url )
{ {
tDebug() << "Looking up..." << url; tDebug() << "Looking up..." << url;
QString cleaned = url; QString cleaned = url;
@@ -87,6 +88,7 @@ ShortenedLinkParser::lookupUrl ( const QString& url )
} }
void void
ShortenedLinkParser::lookupFinished() ShortenedLinkParser::lookupFinished()
{ {
@@ -128,6 +130,8 @@ ShortenedLinkParser::checkFinished()
} }
#ifndef ENABLE_HEADLESS
QPixmap QPixmap
ShortenedLinkParser::pixmap() ShortenedLinkParser::pixmap()
{ {
@@ -136,3 +140,5 @@ ShortenedLinkParser::pixmap()
return *s_pixmap; return *s_pixmap;
} }
#endif

View File

@@ -26,7 +26,10 @@
#include <QObject> #include <QObject>
#include <QSet> #include <QSet>
#include <QStringList> #include <QStringList>
#include <QPixmap>
#ifndef ENABLE_HEADLESS
#include <QPixmap>
#endif
class QNetworkReply; class QNetworkReply;
@@ -61,13 +64,14 @@ private:
void lookupUrl( const QString& url ); void lookupUrl( const QString& url );
void checkFinished(); void checkFinished();
#ifndef ENABLE_HEADLESS
static QPixmap pixmap(); static QPixmap pixmap();
static QPixmap* s_pixmap;
#endif
QStringList m_links; QStringList m_links;
QSet< QNetworkReply* > m_queries; QSet< QNetworkReply* > m_queries;
DropJobNotifier* m_expandJob; DropJobNotifier* m_expandJob;
static QPixmap* s_pixmap;
}; };
} }