mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
cleanups
This commit is contained in:
@@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
QPixmap* ErrorStatusMessage::s_pixmap = 0;
|
QPixmap* ErrorStatusMessage::s_pixmap = 0;
|
||||||
|
|
||||||
ErrorStatusMessage::ErrorStatusMessage( const QString& message, int timeoutSecs ) :
|
ErrorStatusMessage::ErrorStatusMessage( const QString& message, int timeoutSecs )
|
||||||
JobStatusItem()
|
: JobStatusItem()
|
||||||
, m_message( message )
|
, m_message( message )
|
||||||
{
|
{
|
||||||
m_timer = new QTimer( this );
|
m_timer = new QTimer( this );
|
||||||
|
@@ -20,11 +20,12 @@
|
|||||||
#define ERRORSTATUSMESSAGE_H
|
#define ERRORSTATUSMESSAGE_H
|
||||||
|
|
||||||
#include "JobStatusItem.h"
|
#include "JobStatusItem.h"
|
||||||
|
#include "dllmacro.h"
|
||||||
|
|
||||||
class QTimer;
|
class QTimer;
|
||||||
class QPixmap;
|
class QPixmap;
|
||||||
|
|
||||||
class ErrorStatusMessage : public JobStatusItem
|
class DLLEXPORT ErrorStatusMessage : public JobStatusItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
@@ -25,9 +25,12 @@
|
|||||||
|
|
||||||
#include "utils/tomahawkutils.h"
|
#include "utils/tomahawkutils.h"
|
||||||
#include "utils/logger.h"
|
#include "utils/logger.h"
|
||||||
|
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
#include "jobview/JobStatusView.h"
|
#include "jobview/JobStatusView.h"
|
||||||
#include "jobview/JobStatusModel.h"
|
#include "jobview/JobStatusModel.h"
|
||||||
#include "jobview/ErrorStatusMessage.h"
|
#include "jobview/ErrorStatusMessage.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "sourcelist.h"
|
#include "sourcelist.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
@@ -117,7 +120,9 @@ void
|
|||||||
XSPFLoader::reportError()
|
XSPFLoader::reportError()
|
||||||
{
|
{
|
||||||
emit error( FetchError );
|
emit error( FetchError );
|
||||||
|
#ifndef ENABLE_HEADLESS
|
||||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorToString( FetchError) ) );
|
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorToString( FetchError) ) );
|
||||||
|
#endif
|
||||||
deleteLater();
|
deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user