summaryrefslogtreecommitdiffstats
path: root/examples/multimediawidgets/player/playlistmodel.h
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-12-06 02:23:21 +0300
committerYoann Lopes <yoann.lopes@qt.io>2016-12-12 12:11:26 +0000
commit2304c5b38a9efe861f7d4e4e0518fcb82532450f (patch)
treeebe43f374c479d1f7b59a6bd77dd8b205761d9ea /examples/multimediawidgets/player/playlistmodel.h
parent7bc230386e0d8d6f3c4ad5a0a6a22a625c9a8327 (diff)
Examples: Add missing override
Change-Id: I54529fdc8013497edb98ee97863fe4a141bdbf1c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'examples/multimediawidgets/player/playlistmodel.h')
-rw-r--r--examples/multimediawidgets/player/playlistmodel.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/multimediawidgets/player/playlistmodel.h b/examples/multimediawidgets/player/playlistmodel.h
index 85a1fbef0..960943f1c 100644
--- a/examples/multimediawidgets/player/playlistmodel.h
+++ b/examples/multimediawidgets/player/playlistmodel.h
@@ -60,18 +60,18 @@ public:
PlaylistModel(QObject *parent = 0);
- int rowCount(const QModelIndex &parent = QModelIndex()) const;
- int columnCount(const QModelIndex &parent = QModelIndex()) const;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+ int columnCount(const QModelIndex &parent = QModelIndex()) const override;
- QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
- QModelIndex parent(const QModelIndex &child) const;
+ QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
+ QModelIndex parent(const QModelIndex &child) const override;
- QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QMediaPlaylist *playlist() const;
void setPlaylist(QMediaPlaylist *playlist);
- bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::DisplayRole);
+ bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::DisplayRole) override;
private slots:
void beginInsertItems(int start, int end);