~aacid/unity-api/use_qenum

« back to all changes in this revision

Viewing changes to test/qmltest/mocks/plugins/Unity/Notifications/Mocks/MockModel.h

  • Committer: Albert Astals Cid
  • Date: 2016-12-14 15:57:28 UTC
  • Revision ID: albert.astals@canonical.com-20161214155728-h1fmoxboreq3x621
Enable -Wsuggest-override

And add the override it suggests

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
public:
42
42
    MockModel(QObject* parent = 0);
43
43
 
44
 
    int rowCount(const QModelIndex &parent = QModelIndex()) const;
45
 
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
46
 
    QHash<int, QByteArray> roleNames() const;
 
44
    int rowCount(const QModelIndex &parent = QModelIndex()) const override;
 
45
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
 
46
    QHash<int, QByteArray> roleNames() const override;
47
47
 
48
 
    bool confirmationPlaceholder() const
 
48
    bool confirmationPlaceholder() const override
49
49
    {
50
50
        return m_confirmationPlaceholder;
51
51
    }
52
52
 
53
 
    void setConfirmationPlaceholder(bool confirmationPlaceholder);
 
53
    void setConfirmationPlaceholder(bool confirmationPlaceholder) override;
54
54
 
55
55
    void add(MockNotification* notification);
56
56