mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Fixed ShortenedLinkParser for headless.
This commit is contained in:
parent
320182427f
commit
eecf2c38d2
@ -69,8 +69,9 @@ ShortenedLinkParser::handlesUrl( const QString& url )
|
||||
url.contains( "rd.io" ) );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ShortenedLinkParser::lookupUrl ( const QString& url )
|
||||
ShortenedLinkParser::lookupUrl( const QString& url )
|
||||
{
|
||||
tDebug() << "Looking up..." << url;
|
||||
QString cleaned = 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>
|
||||
#include <QPixmap>
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user