summaryrefslogtreecommitdiffstats
path: root/src/library/banshee
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2016-11-23 21:46:58 +0100
committerUwe Klotz <uwe_klotz@web.de>2016-11-23 22:30:07 +0100
commit9c2f3c2493876237565d83397108da7b4e2bf36f (patch)
tree779206616b7f955579ffce76cf174d0e9d4f719f /src/library/banshee
parentc629504cfd9403c08ddbda2c9965f7782a2db360 (diff)
Reorder and annotate inherited functions in the TableModel hierarchy
...by using the keywords override and final where appropriate.
Diffstat (limited to 'src/library/banshee')
-rw-r--r--src/library/banshee/bansheeplaylistmodel.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/library/banshee/bansheeplaylistmodel.h b/src/library/banshee/bansheeplaylistmodel.h
index 95ba244342..e6c6bd6cab 100644
--- a/src/library/banshee/bansheeplaylistmodel.h
+++ b/src/library/banshee/bansheeplaylistmodel.h
@@ -15,29 +15,28 @@ class BansheePlaylistModel : public BaseSqlTableModel {
Q_OBJECT
public:
BansheePlaylistModel(QObject* pParent, TrackCollection* pTrackCollection, BansheeDbConnection* pConnection);
- virtual ~BansheePlaylistModel();
+ ~BansheePlaylistModel() final;
void setTableModel(int playlistId);
- virtual TrackPointer getTrack(const QModelIndex& index) const;
- virtual QString getTrackLocation(const QModelIndex& index) const;
- virtual bool isColumnInternal(int column);
+ TrackPointer getTrack(const QModelIndex& index) const final;
+ QString getTrackLocation(const QModelIndex& index) const final;
+ bool isColumnInternal(int column) final;
- virtual Qt::ItemFlags flags(const QModelIndex &index) const;
- TrackModel::CapabilitiesFlags getCapabilities() const;
-
- virtual bool setData(const QModelIndex& index, const QVariant& value, int role=Qt::EditRole);
+ Qt::ItemFlags flags(const QModelIndex &index) const final;
+ CapabilitiesFlags getCapabilities() const final;
+ bool setData(const QModelIndex& index, const QVariant& value, int role=Qt::EditRole) final;
protected:
// Use this if you want a model that is read-only.
- virtual Qt::ItemFlags readOnlyFlags(const QModelIndex &index) const;
+ Qt::ItemFlags readOnlyFlags(const QModelIndex &index) const final;
// Use this if you want a model that can be changed
- virtual Qt::ItemFlags readWriteFlags(const QModelIndex &index) const;
+ Qt::ItemFlags readWriteFlags(const QModelIndex &index) const final;
private slots:
- virtual void tracksChanged(QSet<TrackId> trackIds);
- virtual void trackLoaded(QString group, TrackPointer pTrack);
+ void tracksChanged(QSet<TrackId> trackIds);
+ void trackLoaded(QString group, TrackPointer pTrack);
private:
QString getFieldString(const QModelIndex& index, const QString& fieldName) const;