Commit ba212ed8 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Add missing Q_DECL_OVERRIDE keywords.

REVIEW: 129175
parent 0a18c579
......@@ -62,7 +62,7 @@ public:
* In contrast wasExpanded() will only return true if the child nodes
* are actually present in memory.
*/
virtual bool hasChildren() const Q_DECL_OVERRIDE;
bool hasChildren() const Q_DECL_OVERRIDE;
/**
* check if there are any child nodes present in memory
*
......@@ -73,10 +73,10 @@ public:
* objects are not present in memory.
*/
virtual bool wasExpanded() const;
virtual int getChildCount() Q_DECL_OVERRIDE;
int getChildCount() Q_DECL_OVERRIDE;
virtual const KGpgNode::List &getChildren() const;
virtual KGpgNode *getChild(const int index) const Q_DECL_OVERRIDE;
virtual int getChildIndex(KGpgNode *node) const Q_DECL_OVERRIDE;
KGpgNode *getChild(const int index) const Q_DECL_OVERRIDE;
int getChildIndex(KGpgNode *node) const Q_DECL_OVERRIDE;
virtual void deleteChild(KGpgNode *child);
};
......
......@@ -38,11 +38,11 @@ public:
explicit KGpgGroupMemberNode(KGpgGroupNode *parent, KGpgKeyNode *k);
virtual ~KGpgGroupMemberNode();
virtual KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
virtual KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
virtual QString getSize() const Q_DECL_OVERRIDE;
virtual QDateTime getExpiration() const Q_DECL_OVERRIDE;
virtual QDateTime getCreation() const Q_DECL_OVERRIDE;
KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
QString getSize() const Q_DECL_OVERRIDE;
QDateTime getExpiration() const Q_DECL_OVERRIDE;
QDateTime getCreation() const Q_DECL_OVERRIDE;
virtual KGpgGroupNode *getParentKeyNode() const;
/**
......
......@@ -39,15 +39,15 @@ public:
explicit KGpgOrphanNode(KGpgExpandableNode *parent, const KgpgKey &k);
virtual ~KGpgOrphanNode();
virtual KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
virtual KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
const QString &getFingerprint() const;
virtual QString getSize() const Q_DECL_OVERRIDE;
virtual QString getName() const Q_DECL_OVERRIDE;
virtual QString getEmail() const Q_DECL_OVERRIDE;
virtual QDateTime getExpiration() const Q_DECL_OVERRIDE;
virtual QDateTime getCreation() const Q_DECL_OVERRIDE;
virtual QString getId() const Q_DECL_OVERRIDE;
QString getSize() const Q_DECL_OVERRIDE;
QString getName() const Q_DECL_OVERRIDE;
QString getEmail() const Q_DECL_OVERRIDE;
QDateTime getExpiration() const Q_DECL_OVERRIDE;
QDateTime getCreation() const Q_DECL_OVERRIDE;
QString getId() const Q_DECL_OVERRIDE;
};
#endif /* KGPGORPHANNODE_H */
......@@ -46,13 +46,13 @@ private:
int m_groups;
protected:
virtual void readChildren() Q_DECL_OVERRIDE;
void readChildren() Q_DECL_OVERRIDE;
public:
explicit KGpgRootNode(KGpgItemModel *model);
virtual ~KGpgRootNode();
virtual KgpgCore::KgpgItemType getType() const;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
/**
* Create new group nodes
......
......@@ -45,10 +45,10 @@ public:
explicit KGpgSignNode(KGpgSignableNode *parent, const QStringList &s);
virtual ~KGpgSignNode();
virtual KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
virtual QDateTime getExpiration() const Q_DECL_OVERRIDE;
virtual QString getName() const Q_DECL_OVERRIDE;
virtual QDateTime getCreation() const Q_DECL_OVERRIDE;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
QDateTime getExpiration() const Q_DECL_OVERRIDE;
QString getName() const Q_DECL_OVERRIDE;
QDateTime getCreation() const Q_DECL_OVERRIDE;
};
#endif /* KGPGSIGNNODE_H */
......@@ -35,21 +35,21 @@ private:
QString m_fingerprint;
protected:
virtual void readChildren();
void readChildren() Q_DECL_OVERRIDE;
public:
explicit KGpgSubkeyNode(KGpgKeyNode *parent, const KgpgCore::KgpgKeySub &k);
virtual ~KGpgSubkeyNode();
virtual KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
virtual KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
virtual QString getSize() const Q_DECL_OVERRIDE;
virtual QString getName() const Q_DECL_OVERRIDE;
virtual QDateTime getExpiration() const Q_DECL_OVERRIDE;
virtual QDateTime getCreation() const Q_DECL_OVERRIDE;
virtual QString getId() const Q_DECL_OVERRIDE;
virtual KGpgKeyNode *getKeyNode(void) Q_DECL_OVERRIDE;
virtual const KGpgKeyNode *getKeyNode(void) const Q_DECL_OVERRIDE;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
QString getSize() const Q_DECL_OVERRIDE;
QString getName() const Q_DECL_OVERRIDE;
QDateTime getExpiration() const Q_DECL_OVERRIDE;
QDateTime getCreation() const Q_DECL_OVERRIDE;
QString getId() const Q_DECL_OVERRIDE;
KGpgKeyNode *getKeyNode(void) Q_DECL_OVERRIDE;
const KGpgKeyNode *getKeyNode(void) const Q_DECL_OVERRIDE;
virtual KGpgKeyNode *getParentKeyNode() const;
void setFingerprint(const QString &fpr);
......
......@@ -39,22 +39,22 @@ private:
Q_DECLARE_PRIVATE(KGpgUatNode)
protected:
virtual void readChildren();
void readChildren() Q_DECL_OVERRIDE;
public:
explicit KGpgUatNode(KGpgKeyNode *parent, const unsigned int index, const QStringList &sl);
virtual ~KGpgUatNode();
virtual KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
virtual KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
const QPixmap &getPixmap() const;
virtual QString getId() const Q_DECL_OVERRIDE;
virtual QString getSize() const Q_DECL_OVERRIDE;
virtual QString getName() const Q_DECL_OVERRIDE;
virtual QDateTime getCreation() const Q_DECL_OVERRIDE;
QString getId() const Q_DECL_OVERRIDE;
QString getSize() const Q_DECL_OVERRIDE;
QString getName() const Q_DECL_OVERRIDE;
QDateTime getCreation() const Q_DECL_OVERRIDE;
virtual KGpgKeyNode *getParentKeyNode() const;
virtual KGpgKeyNode *getKeyNode(void) Q_DECL_OVERRIDE;
virtual const KGpgKeyNode *getKeyNode(void) const Q_DECL_OVERRIDE;
KGpgKeyNode *getKeyNode(void) Q_DECL_OVERRIDE;
const KGpgKeyNode *getKeyNode(void) const Q_DECL_OVERRIDE;
};
#endif /* KGPGUATNODE_H */
......@@ -37,21 +37,21 @@ private:
Q_DECLARE_PRIVATE(KGpgUidNode)
protected:
virtual void readChildren();
void readChildren() Q_DECL_OVERRIDE;
public:
explicit KGpgUidNode(KGpgKeyNode *parent, const unsigned int index, const QStringList &sl);
virtual ~KGpgUidNode();
virtual KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
virtual KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
virtual QString getName() const Q_DECL_OVERRIDE;
virtual QString getEmail() const Q_DECL_OVERRIDE;
virtual QString getId() const Q_DECL_OVERRIDE;
virtual KGpgKeyNode *getKeyNode(void) Q_DECL_OVERRIDE;
virtual const KGpgKeyNode *getKeyNode(void) const Q_DECL_OVERRIDE;
KgpgCore::KgpgItemType getType() const Q_DECL_OVERRIDE;
KgpgCore::KgpgKeyTrust getTrust() const Q_DECL_OVERRIDE;
QString getName() const Q_DECL_OVERRIDE;
QString getEmail() const Q_DECL_OVERRIDE;
QString getId() const Q_DECL_OVERRIDE;
KGpgKeyNode *getKeyNode(void) Q_DECL_OVERRIDE;
const KGpgKeyNode *getKeyNode(void) const Q_DECL_OVERRIDE;
virtual KGpgKeyNode *getParentKeyNode() const;
virtual QString getComment() const Q_DECL_OVERRIDE;
QString getComment() const Q_DECL_OVERRIDE;
};
#endif /* KGPGUIDNODE_H */
......@@ -43,11 +43,11 @@ public:
explicit KGpgSearchResultBackingModel(QObject *parent = Q_NULLPTR);
~KGpgSearchResultBackingModel();
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
virtual QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
/**
......@@ -134,7 +134,7 @@ public:
* internally. Use `resetSourceModel()` if you want to clear the
* source model, and `slotAddKey()` to populate it.
*/
virtual void setSourceModel(QAbstractItemModel *sourceModel) Q_DECL_OVERRIDE;
void setSourceModel(QAbstractItemModel *sourceModel) Q_DECL_OVERRIDE;
public slots:
/**
......
......@@ -31,7 +31,7 @@ public:
void setImagePath(const QString &imagepath);
protected:
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
private:
QString m_photourl;
......
......@@ -36,8 +36,8 @@ public:
void setComment(const QString &comment);
protected:
virtual bool preStart() Q_DECL_OVERRIDE;
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
private:
QString m_name;
......
......@@ -32,8 +32,8 @@ public:
void setDisable(bool disable);
protected:
virtual bool preStart() Q_DECL_OVERRIDE;
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
};
#endif // KGPGCHANGEDISABLE_H
......@@ -33,7 +33,7 @@ public:
void setDate(const QDateTime &date);
protected:
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
private:
QDateTime m_date;
......
......@@ -30,10 +30,10 @@ public:
virtual ~KGpgChangePass();
protected:
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
virtual bool preStart() Q_DECL_OVERRIDE;
virtual bool passphraseRequested() Q_DECL_OVERRIDE;
virtual bool passphraseReceived() Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
bool passphraseRequested() Q_DECL_OVERRIDE;
bool passphraseReceived() Q_DECL_OVERRIDE;
private:
bool m_seenold; ///< old password correctly entered
......
......@@ -35,9 +35,9 @@ public:
void setTrust(const gpgme_validity_t trust);
protected:
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
virtual ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
virtual bool preStart() Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
private:
gpgme_validity_t m_trust;
......
......@@ -73,8 +73,8 @@ public:
static bool isEncryptedText(const QString &text, int *startPos = Q_NULLPTR, int *endPos = Q_NULLPTR);
protected:
virtual QStringList command() const Q_DECL_OVERRIDE;
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
QStringList command() const Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
private:
int m_fileIndex;
......
......@@ -40,9 +40,9 @@ public:
KGpgKeyNode::List keys() const;
protected:
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
virtual ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
virtual bool preStart() Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
private:
KGpgKeyNode::List m_keys;
......
......@@ -69,8 +69,8 @@ public:
KGpgSignNode::List getSignIds(void) const;
protected:
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
virtual ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
private:
KGpgSignNode::List m_signids; ///< the list of ids to delete
......
......@@ -88,10 +88,10 @@ public:
void setUids(const KGpgSignableNode::const_List &uids);
protected:
virtual bool preStart() Q_DECL_OVERRIDE;
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
virtual ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
virtual void finish() Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
void finish() Q_DECL_OVERRIDE;
private:
int m_fixargs;
......
......@@ -56,7 +56,7 @@ protected:
* If you inherit from this class make sure this method is called
* from your inherited method before you do anything else there.
*/
virtual bool preStart() Q_DECL_OVERRIDE;
bool preStart() Q_DECL_OVERRIDE;
/**
* @brief handle standard GnuPG prompts
......@@ -71,9 +71,9 @@ protected:
* Every line sent here by GnuPG not recognised as command handled
* here will set a sequence error so be sure to handle your stuff first!
*/
virtual bool nextLine(const QString &line) Q_DECL_OVERRIDE;
bool nextLine(const QString &line) Q_DECL_OVERRIDE;
virtual ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
ts_boolanswer boolQuestion(const QString &line) Q_DECL_OVERRIDE;
/**
* @brief replace the argument of the edit command
......
Supports Markdown
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