mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Fixed ShortenedLinkParser for headless.
This commit is contained in:
@@ -69,6 +69,7 @@ ShortenedLinkParser::handlesUrl( const QString& url )
|
||||
url.contains( "rd.io" ) );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ShortenedLinkParser::lookupUrl( const QString& url )
|
||||
{
|
||||
@@ -87,6 +88,7 @@ ShortenedLinkParser::lookupUrl ( const QString& url )
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ShortenedLinkParser::lookupFinished()
|
||||
{
|
||||
@@ -128,6 +130,8 @@ ShortenedLinkParser::checkFinished()
|
||||
}
|
||||
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
|
||||
QPixmap
|
||||
ShortenedLinkParser::pixmap()
|
||||
{
|
||||
@@ -136,3 +140,5 @@ ShortenedLinkParser::pixmap()
|
||||
|
||||
return *s_pixmap;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -26,7 +26,10 @@
|
||||
#include <QObject>
|
||||
#include <QSet>
|
||||
#include <QStringList>
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
#include <QPixmap>
|
||||
#endif
|
||||
|
||||
class QNetworkReply;
|
||||
|
||||
@@ -61,13 +64,14 @@ private:
|
||||
void lookupUrl( const QString& url );
|
||||
void checkFinished();
|
||||
|
||||
#ifndef ENABLE_HEADLESS
|
||||
static QPixmap pixmap();
|
||||
static QPixmap* s_pixmap;
|
||||
#endif
|
||||
|
||||
QStringList m_links;
|
||||
QSet< QNetworkReply* > m_queries;
|
||||
DropJobNotifier* m_expandJob;
|
||||
|
||||
static QPixmap* s_pixmap;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user