Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Use Q_DECLARE_OVERRIDE

parent 97a272cf
......@@ -97,7 +97,7 @@ protected:
* @see KMainWindow#queryClose
* @see KMainWindow#closeEvent
*/
virtual bool queryClose();
bool queryClose() Q_DECL_OVERRIDE;
public slots:
/** open a file and load it into the history */
......
......@@ -82,7 +82,7 @@ public:
/** Destructor. */
~PhraseBookDialog();
bool queryClose();
bool queryClose() Q_DECL_OVERRIDE;
public slots:
void slotTextChanged(const QString &s);
......
......@@ -38,29 +38,29 @@ public:
PhraseBookParser();
~PhraseBookParser();
bool warning(const QXmlParseException &exception);
bool error(const QXmlParseException &exception);
bool fatalError(const QXmlParseException &exception);
QString errorString() const;
bool warning(const QXmlParseException &exception) Q_DECL_OVERRIDE;
bool error(const QXmlParseException &exception) Q_DECL_OVERRIDE;
bool fatalError(const QXmlParseException &exception) Q_DECL_OVERRIDE;
QString errorString() const Q_DECL_OVERRIDE;
/** Processes the start of the document. */
bool startDocument();
bool startDocument() Q_DECL_OVERRIDE;
/** Processes the start tag of an element. */
bool startElement(const QString &, const QString &, const QString &name,
const QXmlAttributes &attributes);
const QXmlAttributes &attributes) Q_DECL_OVERRIDE;
/** Processes a chunk of normal character data. */
bool characters(const QString &ch);
bool characters(const QString &ch) Q_DECL_OVERRIDE;
/** Processes whitespace. */
bool ignorableWhitespace(const QString &ch);
bool ignorableWhitespace(const QString &ch) Q_DECL_OVERRIDE;
/** Processes the end tag of an element. */
bool endElement(const QString &, const QString &, const QString &name);
bool endElement(const QString &, const QString &, const QString &name) Q_DECL_OVERRIDE;
/** Processes the end of the document. */
bool endDocument();
bool endDocument() Q_DECL_OVERRIDE;
/** returns a list of phrase book entries */
PhraseBookEntryList getPhraseList();
......
......@@ -95,7 +95,7 @@ protected slots:
void contextMenuRequested(const QPoint &pos);
void textChanged(const QString &s);
void selectionChanged();
void keyPressEvent(QKeyEvent *e);
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
void configureCompletionCombo(const QStringList &list);
private:
......
......@@ -48,7 +48,7 @@ public:
connect(emptyButton, &QAbstractButton::toggled, this, &CreationSourceWidget::emptyToggled);
}
virtual int nextId() const;
int nextId() const Q_DECL_OVERRIDE;
private slots:
void emptyToggled(bool checked);
};
......@@ -63,7 +63,7 @@ public:
setupUi(this);
setObjectName(QLatin1String(name));
}
virtual int nextId() const
int nextId() const Q_DECL_OVERRIDE
{
return -1;
}
......@@ -83,7 +83,7 @@ public:
ooDictURL->setFilter(QStringLiteral("*.dic"));
}
virtual int nextId() const
int nextId() const Q_DECL_OVERRIDE
{
return -1;
}
......
......@@ -58,7 +58,7 @@ public:
/**
* Finds completions to the given text.
*/
virtual QString makeCompletion(const QString&);
QString makeCompletion(const QString&) Q_DECL_OVERRIDE;
static bool isConfigured();
......
......@@ -57,29 +57,29 @@ public:
XMLParser();
~XMLParser();
bool warning(const QXmlParseException &exception);
bool error(const QXmlParseException &exception);
bool fatalError(const QXmlParseException &exception);
QString errorString() const;
bool warning(const QXmlParseException &exception) Q_DECL_OVERRIDE;
bool error(const QXmlParseException &exception) Q_DECL_OVERRIDE;
bool fatalError(const QXmlParseException &exception) Q_DECL_OVERRIDE;
QString errorString() const Q_DECL_OVERRIDE;
/** Processes the start of the document. */
bool startDocument();
bool startDocument() Q_DECL_OVERRIDE;
/** Processes the start tag of an element. */
bool startElement(const QString &, const QString &, const QString &name,
const QXmlAttributes &attributes);
const QXmlAttributes &attributes) Q_DECL_OVERRIDE;
/** Processes a chunk of normal character data. */
bool characters(const QString &ch);
bool characters(const QString &ch) Q_DECL_OVERRIDE;
/** Processes whitespace. */
bool ignorableWhitespace(const QString &ch);
bool ignorableWhitespace(const QString &ch) Q_DECL_OVERRIDE;
/** Processes the end tag of an element. */
bool endElement(const QString &, const QString &, const QString &name);
bool endElement(const QString &, const QString &, const QString &name) Q_DECL_OVERRIDE;
/** Processes the end of the document. */
bool endDocument();
bool endDocument() Q_DECL_OVERRIDE;
/** returns a list of words */
WordMap getList();
......
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