mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Mark overrides as such
This commit is contained in:
@@ -44,12 +44,12 @@ namespace Tomahawk {
|
||||
void publishTune( QUrl url, Tomahawk::InfoSystem::InfoStringHash trackInfo );
|
||||
|
||||
public slots:
|
||||
void notInCacheSlot( const Tomahawk::InfoSystem::InfoStringHash criteria, Tomahawk::InfoSystem::InfoRequestData requestData );
|
||||
void notInCacheSlot( const Tomahawk::InfoSystem::InfoStringHash criteria, Tomahawk::InfoSystem::InfoRequestData requestData ) override;
|
||||
|
||||
protected slots:
|
||||
void init();
|
||||
void pushInfo( Tomahawk::InfoSystem::InfoPushData pushData );
|
||||
void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData );
|
||||
void init() override;
|
||||
void pushInfo( Tomahawk::InfoSystem::InfoPushData pushData ) override;
|
||||
void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData ) override;
|
||||
|
||||
private slots:
|
||||
void audioStarted( const Tomahawk::InfoSystem::PushInfoPair& pushInfoPair );
|
||||
|
@@ -54,14 +54,14 @@ public:
|
||||
Account::ConnectionState connectionState() const;
|
||||
|
||||
public slots:
|
||||
void connectPlugin();
|
||||
void disconnectPlugin();
|
||||
void connectPlugin() override;
|
||||
void disconnectPlugin() override;
|
||||
|
||||
void advertise();
|
||||
|
||||
virtual void sendSipInfos( const Tomahawk::peerinfo_ptr& /* receiver */, const QList<SipInfo>& /* info */ ) {}
|
||||
virtual void sendSipInfos( const Tomahawk::peerinfo_ptr& /* receiver */, const QList<SipInfo>& /* info */ ) override {}
|
||||
void broadcastMsg( const QString& ) {}
|
||||
bool addContact( const QString&, AddContactOptions, const QString& ) { return false; }
|
||||
bool addContact( const QString&, AddContactOptions, const QString& ) override { return false; }
|
||||
|
||||
private slots:
|
||||
void lanHostFound( const QString& host, int port, const QString& name, const QString& nodeid );
|
||||
|
@@ -59,10 +59,10 @@ public:
|
||||
void setLimit( unsigned int amount ) { m_amount = amount; }
|
||||
void setSortOrder( DatabaseCommand_AllArtists::SortOrder order ) { m_sortOrder = order; }
|
||||
void setSortDescending( bool descending ) { m_sortDescending = descending; }
|
||||
void setFilter( const QString& filter ) { m_filter = filter; }
|
||||
void setFilter( const QString& filter ) override { m_filter = filter; }
|
||||
|
||||
signals:
|
||||
void artists( const QList<Tomahawk::artist_ptr>& );
|
||||
void artists( const QList<Tomahawk::artist_ptr>& ) override;
|
||||
void done();
|
||||
|
||||
private:
|
||||
|
@@ -74,7 +74,7 @@ public:
|
||||
|
||||
signals:
|
||||
void tracks( const QList<Tomahawk::query_ptr>&, const QVariant& data );
|
||||
void tracks( const QList<Tomahawk::query_ptr>& );
|
||||
void tracks( const QList<Tomahawk::query_ptr>& ) override;
|
||||
void done( const Tomahawk::collection_ptr& );
|
||||
|
||||
private:
|
||||
|
@@ -34,11 +34,11 @@ public:
|
||||
explicit DatabaseResolver( int weight );
|
||||
|
||||
QString name() const override;
|
||||
virtual unsigned int weight() const { return m_weight; }
|
||||
virtual unsigned int timeout() const { return 0; }
|
||||
virtual unsigned int weight() const override{ return m_weight; }
|
||||
virtual unsigned int timeout() const override{ return 0; }
|
||||
|
||||
public slots:
|
||||
virtual void resolve( const Tomahawk::query_ptr& query );
|
||||
virtual void resolve( const Tomahawk::query_ptr& query ) override;
|
||||
|
||||
private slots:
|
||||
void gotResults( const Tomahawk::QID qid, QList< Tomahawk::result_ptr> results );
|
||||
|
@@ -42,8 +42,8 @@ public:
|
||||
explicit DBSyncConnection( Servent* s, const Tomahawk::source_ptr& src );
|
||||
virtual ~DBSyncConnection();
|
||||
|
||||
void setup();
|
||||
Connection* clone();
|
||||
void setup() override;
|
||||
Connection* clone() override;
|
||||
|
||||
signals:
|
||||
void stateChanged( Tomahawk::DBSyncConnectionState newstate, Tomahawk::DBSyncConnectionState oldstate, const QString& info );
|
||||
|
@@ -59,7 +59,7 @@ public:
|
||||
|
||||
PlayableModel* sourceModel() const { return m_model; }
|
||||
virtual void setSourcePlayableModel( PlayableModel* sourceModel );
|
||||
virtual void setSourceModel( QAbstractItemModel* model );
|
||||
virtual void setSourceModel( QAbstractItemModel* model ) override;
|
||||
|
||||
virtual bool isLoading() const;
|
||||
|
||||
@@ -91,9 +91,9 @@ public:
|
||||
|
||||
QList< double > columnWeights() const;
|
||||
|
||||
virtual int columnCount( const QModelIndex& parent = QModelIndex() ) const;
|
||||
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const;
|
||||
virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) const;
|
||||
virtual int columnCount( const QModelIndex& parent = QModelIndex() ) const override;
|
||||
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const override;
|
||||
virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) const override;
|
||||
|
||||
virtual void setFilter( const QString& pattern );
|
||||
virtual void updateDetailedInfo( const QModelIndex& index );
|
||||
@@ -120,7 +120,7 @@ signals:
|
||||
|
||||
protected:
|
||||
bool filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent ) const Q_DECL_OVERRIDE;
|
||||
virtual bool lessThan( const QModelIndex& left, const QModelIndex& right ) const;
|
||||
virtual bool lessThan( const QModelIndex& left, const QModelIndex& right ) const override;
|
||||
|
||||
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
||||
|
||||
|
@@ -41,12 +41,12 @@ public:
|
||||
void setFilter( const QString& filter ) override;
|
||||
|
||||
signals:
|
||||
void albums( const QList< Tomahawk::album_ptr >& );
|
||||
void done();
|
||||
void albums( const QList< Tomahawk::album_ptr >& ) override;
|
||||
void done() override;
|
||||
|
||||
protected:
|
||||
virtual void exec();
|
||||
virtual void reportFailure();
|
||||
virtual void exec() override;
|
||||
virtual void reportFailure() override;
|
||||
|
||||
private slots:
|
||||
void onAlbumsJobDone( const QVariantMap& result );
|
||||
|
@@ -42,8 +42,8 @@ public:
|
||||
void setFilter( const QString& filter ) override;
|
||||
|
||||
signals:
|
||||
void artists( const QList< Tomahawk::artist_ptr >& );
|
||||
void done();
|
||||
void artists( const QList< Tomahawk::artist_ptr >& ) override;
|
||||
void done() override;
|
||||
|
||||
protected:
|
||||
void exec() override;
|
||||
|
@@ -39,8 +39,8 @@ public:
|
||||
void enqueue() override;
|
||||
|
||||
signals:
|
||||
void tracks( const QList< Tomahawk::query_ptr >& );
|
||||
void done();
|
||||
void tracks( const QList< Tomahawk::query_ptr >& ) override;
|
||||
void done() override;
|
||||
|
||||
protected:
|
||||
Q_INVOKABLE void exec() override;
|
||||
|
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
signals:
|
||||
void information( const QString& url, const QSharedPointer<QObject>& variant );
|
||||
void done();
|
||||
void done() override;
|
||||
|
||||
protected:
|
||||
void exec() override;
|
||||
|
@@ -30,9 +30,9 @@ public:
|
||||
explicit CollectionItem( SourcesModel* model, SourceTreeItem* parent, const Tomahawk::collection_ptr& collection );
|
||||
virtual ~CollectionItem();
|
||||
|
||||
virtual QString text() const;
|
||||
virtual QIcon icon() const;
|
||||
virtual int peerSortValue() const;
|
||||
virtual QString text() const override;
|
||||
virtual QIcon icon() const override;
|
||||
virtual int peerSortValue() const override;
|
||||
void setSortValue( int value );
|
||||
|
||||
bool isBeingPlayed() const override;
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
int trackCount() const;
|
||||
|
||||
public slots:
|
||||
virtual void activate();
|
||||
virtual void activate() override;
|
||||
|
||||
private:
|
||||
int m_sortValue;
|
||||
|
@@ -85,17 +85,17 @@ public:
|
||||
WhatsNew_0_8( QWidget* parent = 0 );
|
||||
virtual ~WhatsNew_0_8();
|
||||
|
||||
const QString defaultName() { return WHATSNEW_0_8_VIEWPAGE_NAME; }
|
||||
QString title() const { return tr( "What's new in 0.8?" ); }
|
||||
QString description() const { return tr( "An overview of the changes and additions since 0.7." ); }
|
||||
const QString pixmapPath() const { return ( RESPATH "images/whatsnew.svg" ); }
|
||||
const QString defaultName() override { return WHATSNEW_0_8_VIEWPAGE_NAME; }
|
||||
QString title() const override { return tr( "What's new in 0.8?" ); }
|
||||
QString description() const override { return tr( "An overview of the changes and additions since 0.7." ); }
|
||||
const QString pixmapPath() const override { return ( RESPATH "images/whatsnew.svg" ); }
|
||||
|
||||
bool addPageItem() const;
|
||||
bool addPageItem() const override;
|
||||
bool isRemovable() const override { return true; }
|
||||
bool isDeletable() const override { return false; }
|
||||
void onItemDeleted();
|
||||
void onItemDeleted() override;
|
||||
|
||||
int sortValue() { return 1; }
|
||||
int sortValue() override { return 1; }
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user