Commit 610b6f13 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

Q_DECL_OVERRIDE -> override

Rationale is that breeze decoration depends on libkdecoration, which uses override directly already.
parent 30245aba
......@@ -50,7 +50,7 @@ namespace Breeze
static Button *create(KDecoration2::DecorationButtonType type, KDecoration2::Decoration *decoration, QObject *parent);
//* render
virtual void paint(QPainter *painter, const QRect &repaintRegion) Q_DECL_OVERRIDE;
virtual void paint(QPainter *painter, const QRect &repaintRegion) override;
//* flag
enum Flag
......
......@@ -70,14 +70,14 @@ namespace Breeze
//@{
//! flags
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE
Qt::ItemFlags flags(const QModelIndex &index) const override
{
if (!index.isValid()) return 0;
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}
//! unique index for given row, column and parent index
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override
{
// check if index is valid
......@@ -92,11 +92,11 @@ namespace Breeze
}
//! index of parent
QModelIndex parent(const QModelIndex &) const Q_DECL_OVERRIDE
QModelIndex parent(const QModelIndex &) const override
{ return QModelIndex(); }
//! number of rows below given index
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE
int rowCount(const QModelIndex &parent = QModelIndex()) const override
{ return parent.isValid() ? 0:_values.size(); }
//@}
......
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