QtCore: Add missing override
Change-Id: Ifdec31aabdd0371f36abbb382e49f52f5b58ee94 Reviewed-by: hjk <hjk@qt.io>bb10
parent
9808b53fde
commit
48d7db6b31
|
|
@ -66,12 +66,12 @@ public:
|
|||
explicit QSimpleTextCodec(int);
|
||||
~QSimpleTextCodec();
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
QByteArray name() const;
|
||||
QList<QByteArray> aliases() const;
|
||||
int mibEnum() const;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
private:
|
||||
int forwardIndex;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ protected:
|
|||
bool openExternalFile(int flags, int fd, QFile::FileHandleFlags handleFlags);
|
||||
bool openExternalFile(int flags, FILE *fh, QFile::FileHandleFlags handleFlags);
|
||||
|
||||
virtual QAbstractFileEngine *engine() const;
|
||||
QAbstractFileEngine *engine() const override;
|
||||
|
||||
QString fileName;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ protected:
|
|||
QTemporaryFilePrivate();
|
||||
~QTemporaryFilePrivate();
|
||||
|
||||
QAbstractFileEngine *engine() const;
|
||||
QAbstractFileEngine *engine() const override;
|
||||
void resetFileEngine() const;
|
||||
|
||||
bool autoRemove;
|
||||
|
|
@ -98,14 +98,14 @@ public:
|
|||
~QTemporaryFileEngine();
|
||||
|
||||
bool isReallyOpen() const;
|
||||
void setFileName(const QString &file);
|
||||
void setFileName(const QString &file) override;
|
||||
void setFileTemplate(const QString &fileTemplate);
|
||||
|
||||
bool open(QIODevice::OpenMode flags);
|
||||
bool remove();
|
||||
bool rename(const QString &newName);
|
||||
bool renameOverwrite(const QString &newName);
|
||||
bool close();
|
||||
bool open(QIODevice::OpenMode flags) override;
|
||||
bool remove() override;
|
||||
bool rename(const QString &newName) override;
|
||||
bool renameOverwrite(const QString &newName) override;
|
||||
bool close() override;
|
||||
|
||||
quint32 fileMode;
|
||||
bool filePathIsTemplate;
|
||||
|
|
|
|||
|
|
@ -108,19 +108,19 @@ public:
|
|||
explicit QMimeTypeParser(QMimeXMLProvider &provider) : m_provider(provider) {}
|
||||
|
||||
protected:
|
||||
inline bool process(const QMimeType &t, QString *)
|
||||
inline bool process(const QMimeType &t, QString *) override
|
||||
{ m_provider.addMimeType(t); return true; }
|
||||
|
||||
inline bool process(const QMimeGlobPattern &glob, QString *)
|
||||
inline bool process(const QMimeGlobPattern &glob, QString *) override
|
||||
{ m_provider.addGlobPattern(glob); return true; }
|
||||
|
||||
inline void processParent(const QString &child, const QString &parent)
|
||||
inline void processParent(const QString &child, const QString &parent) override
|
||||
{ m_provider.addParent(child, parent); }
|
||||
|
||||
inline void processAlias(const QString &alias, const QString &name)
|
||||
inline void processAlias(const QString &alias, const QString &name) override
|
||||
{ m_provider.addAlias(alias, name); }
|
||||
|
||||
inline void processMagicMatcher(const QMimeMagicRuleMatcher &matcher)
|
||||
inline void processMagicMatcher(const QMimeMagicRuleMatcher &matcher) override
|
||||
{ m_provider.addMagicMatcher(matcher); }
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -87,8 +87,8 @@ protected:
|
|||
// state, it will handle this transition as a special case. The history state itself is never
|
||||
// entered either: either the stored configuration will be used, or the target(s) of this
|
||||
// transition are used.
|
||||
virtual bool eventTest(QEvent *event) { Q_UNUSED(event); return false; }
|
||||
virtual void onTransition(QEvent *event) { Q_UNUSED(event); }
|
||||
bool eventTest(QEvent *event) override { Q_UNUSED(event); return false; }
|
||||
void onTransition(QEvent *event) override { Q_UNUSED(event); }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
Loading…
Reference in New Issue