diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2014-11-16 13:09:01 +0100 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2014-12-03 09:57:11 +0100 |
commit | 5180f32c5abe01acd65cde68c2c16aedda4028ec (patch) | |
tree | a8ed3b4af80751cdc0442c750f2915bfa9c8af40 /src/sql/models/qsqlrelationaltablemodel.h | |
parent | 2e271795e7c460254a27ea617846ff7b598a7b9b (diff) |
Add Q_DECL_OVERRIDE in the src subdirectory
Done automatically with clang-modernize on linux
(But does not add Q_DECL_OVERRIDE to the function that are marked
as inline because it a compilation error with MSVC2010)
Change-Id: I2196ee26e3e6fe20816834ecea5ea389eeab3171
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/models/qsqlrelationaltablemodel.h')
-rw-r--r-- | src/sql/models/qsqlrelationaltablemodel.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sql/models/qsqlrelationaltablemodel.h b/src/sql/models/qsqlrelationaltablemodel.h index 8a9ab43443..92ddb03c6c 100644 --- a/src/sql/models/qsqlrelationaltablemodel.h +++ b/src/sql/models/qsqlrelationaltablemodel.h @@ -74,27 +74,27 @@ public: QSqlDatabase db = QSqlDatabase()); virtual ~QSqlRelationalTableModel(); - QVariant data(const QModelIndex &item, int role = Qt::DisplayRole) const; - bool setData(const QModelIndex &item, const QVariant &value, int role = Qt::EditRole); - bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()); + QVariant data(const QModelIndex &item, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; + bool setData(const QModelIndex &item, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE; + bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE; - void clear(); - bool select(); + void clear() Q_DECL_OVERRIDE; + bool select() Q_DECL_OVERRIDE; - void setTable(const QString &tableName); + void setTable(const QString &tableName) Q_DECL_OVERRIDE; virtual void setRelation(int column, const QSqlRelation &relation); QSqlRelation relation(int column) const; virtual QSqlTableModel *relationModel(int column) const; void setJoinMode( QSqlRelationalTableModel::JoinMode joinMode ); public Q_SLOTS: - void revertRow(int row); + void revertRow(int row) Q_DECL_OVERRIDE; protected: - QString selectStatement() const; - bool updateRowInTable(int row, const QSqlRecord &values); - bool insertRowIntoTable(const QSqlRecord &values); - QString orderByClause() const; + QString selectStatement() const Q_DECL_OVERRIDE; + bool updateRowInTable(int row, const QSqlRecord &values) Q_DECL_OVERRIDE; + bool insertRowIntoTable(const QSqlRecord &values) Q_DECL_OVERRIDE; + QString orderByClause() const Q_DECL_OVERRIDE; private: Q_DECLARE_PRIVATE(QSqlRelationalTableModel) |