Commit ac8399f8 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent 03746f15
......@@ -25,8 +25,8 @@ class DummyTheme : public CursorTheme
DummyTheme();
virtual ~DummyTheme();
QImage loadImage(const QString &name, int size = 0) const;
qulonglong loadCursor(const QString &name, int size = 0) const;
QImage loadImage(const QString &name, int size = 0) const Q_DECL_OVERRIDE;
qulonglong loadCursor(const QString &name, int size = 0) const Q_DECL_OVERRIDE;
protected:
DummyTheme(const QString &title, const QString &description = QString())
......
......@@ -46,7 +46,7 @@ class SortProxyModel : public QSortFilterProxyModel
int compare(const QModelIndex &left, const QModelIndex &right, int role) const;
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
};
......
......@@ -62,11 +62,11 @@ class CursorThemeModel : public QAbstractTableModel
public:
CursorThemeModel(QObject *parent = 0);
~CursorThemeModel();
inline int columnCount(const QModelIndex &parent = QModelIndex()) const;
inline int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
QVariant data(const QModelIndex &index, int role) const;
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
inline int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
inline int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) Q_DECL_OVERRIDE;
/// Returns the CursorTheme at @p index.
const CursorTheme *theme(const QModelIndex &index);
......
......@@ -46,8 +46,8 @@ class XCursorTheme : public CursorTheme
virtual ~XCursorTheme() {}
const QStringList inherits() const { return m_inherits; }
QImage loadImage(const QString &name, int size = 0) const;
qulonglong loadCursor(const QString &name, int size = 0) const;
QImage loadImage(const QString &name, int size = 0) const Q_DECL_OVERRIDE;
qulonglong loadCursor(const QString &name, int size = 0) const Q_DECL_OVERRIDE;
protected:
XCursorTheme(const QString &title, const QString &desc)
......
......@@ -30,7 +30,7 @@ public:
~SddmKcm();
public slots:
void save();
void save() Q_DECL_OVERRIDE;
private:
void prepareUi();
......@@ -40,4 +40,4 @@ private:
AdvanceConfig *mAdvanceConfig;
};
#endif // SDDMKCM_H
\ No newline at end of file
#endif // SDDMKCM_H
......@@ -25,11 +25,11 @@ class ThemesDelegate : public QAbstractItemDelegate
public:
explicit ThemesDelegate(QObject *parent = 0);
virtual void paint(QPainter *painter,
void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index) const;
virtual QSize sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const;
const QModelIndex &index) const Q_DECL_OVERRIDE;
QSize sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const Q_DECL_OVERRIDE;
void setPreviewSize(const QSize &size);
static const int SCREENSHOT_SIZE = 128;
......@@ -44,4 +44,4 @@ private:
QSize mSize;
};
#endif //THEMESDELEGATE_H
\ No newline at end of file
#endif //THEMESDELEGATE_H
......@@ -44,8 +44,8 @@ public:
explicit ThemesModel(QObject *parent=0);
virtual ~ThemesModel();
int rowCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
int rowCount(const QModelIndex &parent) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
public Q_SLOTS:
void populate();
......
......@@ -35,8 +35,8 @@ public:
explicit UsersModel(QObject *parent=0);
virtual ~UsersModel();
int rowCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
int rowCount(const QModelIndex &parent) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
void populate(const uint minimumUid, const uint maximumUid);
int indexOf(const QString &user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment