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