Replace Q_DECL_OVERRIDE with override where possible
Remaining uses of Q_DECL_OVERRIDE are in: src/corelib/global/qcompilerdetection.h src/corelib/global/qglobal.cpp doc/global/qt-cpp-defines.qdocconf (definition and documentation of Q_DECL_OVERRIDE) tests/manual/qcursor/qcursorhighdpi/main.cpp (a test executable compilable both under Qt4 and Qt5) Change-Id: Ib9b05d829add69e98a86238274b6a1fcb19b49ba Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
93dd85141b
commit
47c92fbb0b
@ -64,8 +64,8 @@ class ChatConsumer : public Consumer
|
||||
public:
|
||||
explicit ChatConsumer(QObject *parent = nullptr);
|
||||
|
||||
QWidget *widget() Q_DECL_OVERRIDE;
|
||||
void readDatagram(const QByteArray &ba) Q_DECL_OVERRIDE;
|
||||
QWidget *widget() override;
|
||||
void readDatagram(const QByteArray &ba) override;
|
||||
|
||||
private slots:
|
||||
void returnPressed();
|
||||
|
@ -63,9 +63,9 @@ class MovieConsumer : public Consumer
|
||||
public:
|
||||
explicit MovieConsumer(QObject *parent = nullptr);
|
||||
|
||||
QWidget *widget() Q_DECL_OVERRIDE;
|
||||
void readDatagram(const QByteArray &ba) Q_DECL_OVERRIDE;
|
||||
void serverDisconnected() Q_DECL_OVERRIDE;
|
||||
QWidget *widget() override;
|
||||
void readDatagram(const QByteArray &ba) override;
|
||||
void serverDisconnected() override;
|
||||
|
||||
private:
|
||||
QLabel *label;
|
||||
|
@ -64,9 +64,9 @@ class TimeConsumer : public Consumer
|
||||
public:
|
||||
explicit TimeConsumer(QObject *parent = nullptr);
|
||||
|
||||
QWidget *widget() Q_DECL_OVERRIDE;
|
||||
void readDatagram(const QByteArray &ba) Q_DECL_OVERRIDE;
|
||||
void serverDisconnected() Q_DECL_OVERRIDE;
|
||||
QWidget *widget() override;
|
||||
void readDatagram(const QByteArray &ba) override;
|
||||
void serverDisconnected() override;
|
||||
|
||||
private slots:
|
||||
void timerTick();
|
||||
|
@ -59,9 +59,9 @@ class ChatProvider : public Provider
|
||||
public:
|
||||
explicit ChatProvider(QObject *parent = nullptr);
|
||||
|
||||
void readDatagram(QSctpSocket &from, const QByteArray &ba) Q_DECL_OVERRIDE;
|
||||
void newConnection(QSctpSocket &client) Q_DECL_OVERRIDE;
|
||||
void clientDisconnected(QSctpSocket &client) Q_DECL_OVERRIDE;
|
||||
void readDatagram(QSctpSocket &from, const QByteArray &ba) override;
|
||||
void newConnection(QSctpSocket &client) override;
|
||||
void clientDisconnected(QSctpSocket &client) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
virtual ~Server();
|
||||
|
||||
public slots:
|
||||
int exec() Q_DECL_OVERRIDE;
|
||||
int exec() override;
|
||||
|
||||
private slots:
|
||||
void newConnection();
|
||||
|
@ -59,7 +59,7 @@ class TimeProvider : public Provider
|
||||
public:
|
||||
explicit TimeProvider(QObject *parent = nullptr);
|
||||
|
||||
void readDatagram(QSctpSocket &from, const QByteArray &ba) Q_DECL_OVERRIDE;
|
||||
void readDatagram(QSctpSocket &from, const QByteArray &ba) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -86,7 +86,7 @@ public:
|
||||
void setBlurRadius(float blurRadius);
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent *e) override;
|
||||
void setAnimating(bool animate);
|
||||
|
||||
private:
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
|
||||
protected:
|
||||
#if !defined(QT_NO_CONTEXTMENU) && !defined(QT_NO_CLIPBOARD)
|
||||
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
|
||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||
#endif
|
||||
|
||||
private slots:
|
||||
|
@ -113,7 +113,7 @@ private:
|
||||
void startThreads();
|
||||
void threadExit();
|
||||
bool threadThrottleExit();
|
||||
void run() Q_DECL_OVERRIDE;
|
||||
void run() override;
|
||||
virtual void asynchronousFinish() = 0;
|
||||
#ifndef QT_NO_EXCEPTIONS
|
||||
void handleException(const QException &exception);
|
||||
@ -173,7 +173,7 @@ public:
|
||||
return future;
|
||||
}
|
||||
|
||||
void asynchronousFinish() Q_DECL_OVERRIDE
|
||||
void asynchronousFinish() override
|
||||
{
|
||||
finish();
|
||||
futureInterfaceTyped()->reportFinished(result());
|
||||
|
@ -118,7 +118,7 @@ public Q_SLOTS:
|
||||
|
||||
protected:
|
||||
QAbstractAnimation(QAbstractAnimationPrivate &dd, QObject *parent = Q_NULLPTR);
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
virtual void updateCurrentTime(int currentTime) = 0;
|
||||
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
|
||||
|
@ -116,7 +116,7 @@ class QDefaultAnimationDriver : public QAnimationDriver
|
||||
Q_OBJECT
|
||||
public:
|
||||
QDefaultAnimationDriver(QUnifiedTimer *timer);
|
||||
void timerEvent(QTimerEvent *e) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *e) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void startTimer();
|
||||
@ -196,7 +196,7 @@ public:
|
||||
qint64 elapsed() const;
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void startTimers();
|
||||
@ -265,11 +265,11 @@ public:
|
||||
*/
|
||||
static void updateAnimationTimer();
|
||||
|
||||
void restartAnimationTimer() Q_DECL_OVERRIDE;
|
||||
void updateAnimationsTime(qint64 delta) Q_DECL_OVERRIDE;
|
||||
void restartAnimationTimer() override;
|
||||
void updateAnimationsTime(qint64 delta) override;
|
||||
|
||||
//useful for profiling/debugging
|
||||
int runningAnimationCount() Q_DECL_OVERRIDE { return animations.count(); }
|
||||
int runningAnimationCount() override { return animations.count(); }
|
||||
|
||||
private Q_SLOTS:
|
||||
void startAnimations();
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
|
||||
protected:
|
||||
QAnimationGroup(QAnimationGroupPrivate &dd, QObject *parent);
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QAnimationGroup)
|
||||
|
@ -56,15 +56,15 @@ public:
|
||||
QParallelAnimationGroup(QObject *parent = Q_NULLPTR);
|
||||
~QParallelAnimationGroup();
|
||||
|
||||
int duration() const Q_DECL_OVERRIDE;
|
||||
int duration() const override;
|
||||
|
||||
protected:
|
||||
QParallelAnimationGroup(QParallelAnimationGroupPrivate &dd, QObject *parent);
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
void updateCurrentTime(int currentTime) Q_DECL_OVERRIDE;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) Q_DECL_OVERRIDE;
|
||||
void updateDirection(QAbstractAnimation::Direction direction) Q_DECL_OVERRIDE;
|
||||
void updateCurrentTime(int currentTime) override;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
|
||||
void updateDirection(QAbstractAnimation::Direction direction) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QParallelAnimationGroup)
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
void connectUncontrolledAnimations();
|
||||
void disconnectUncontrolledAnimations();
|
||||
|
||||
void animationRemoved(int index, QAbstractAnimation *) Q_DECL_OVERRIDE;
|
||||
void animationRemoved(int index, QAbstractAnimation *) override;
|
||||
|
||||
// private slot
|
||||
void _q_uncontrolledAnimationFinished();
|
||||
|
@ -58,12 +58,12 @@ public:
|
||||
QPauseAnimation(int msecs, QObject *parent = Q_NULLPTR);
|
||||
~QPauseAnimation();
|
||||
|
||||
int duration() const Q_DECL_OVERRIDE;
|
||||
int duration() const override;
|
||||
void setDuration(int msecs);
|
||||
|
||||
protected:
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
void updateCurrentTime(int) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
void updateCurrentTime(int) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QPauseAnimation)
|
||||
|
@ -66,9 +66,9 @@ public:
|
||||
void setPropertyName(const QByteArray &propertyName);
|
||||
|
||||
protected:
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void updateCurrentValue(const QVariant &value) Q_DECL_OVERRIDE;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
void updateCurrentValue(const QVariant &value) override;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QPropertyAnimation)
|
||||
|
@ -63,18 +63,18 @@ public:
|
||||
QPauseAnimation *insertPause(int index, int msecs);
|
||||
|
||||
QAbstractAnimation *currentAnimation() const;
|
||||
int duration() const Q_DECL_OVERRIDE;
|
||||
int duration() const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void currentAnimationChanged(QAbstractAnimation *current);
|
||||
|
||||
protected:
|
||||
QSequentialAnimationGroup(QSequentialAnimationGroupPrivate &dd, QObject *parent);
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
void updateCurrentTime(int) Q_DECL_OVERRIDE;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) Q_DECL_OVERRIDE;
|
||||
void updateDirection(QAbstractAnimation::Direction direction) Q_DECL_OVERRIDE;
|
||||
void updateCurrentTime(int) override;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
|
||||
void updateDirection(QAbstractAnimation::Direction direction) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QSequentialAnimationGroup)
|
||||
|
@ -82,8 +82,8 @@ public:
|
||||
void setCurrentAnimation(int index, bool intermediate = false);
|
||||
void activateCurrentAnimation(bool intermediate = false);
|
||||
|
||||
void animationInsertedAt(int index) Q_DECL_OVERRIDE;
|
||||
void animationRemoved(int index, QAbstractAnimation *anim) Q_DECL_OVERRIDE;
|
||||
void animationInsertedAt(int index) override;
|
||||
void animationRemoved(int index, QAbstractAnimation *anim) override;
|
||||
|
||||
bool atEnd() const;
|
||||
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
|
||||
QVariant currentValue() const;
|
||||
|
||||
int duration() const Q_DECL_OVERRIDE;
|
||||
int duration() const override;
|
||||
void setDuration(int msecs);
|
||||
|
||||
QEasingCurve easingCurve() const;
|
||||
@ -95,10 +95,10 @@ Q_SIGNALS:
|
||||
|
||||
protected:
|
||||
QVariantAnimation(QVariantAnimationPrivate &dd, QObject *parent = Q_NULLPTR);
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
void updateCurrentTime(int) Q_DECL_OVERRIDE;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) Q_DECL_OVERRIDE;
|
||||
void updateCurrentTime(int) override;
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
|
||||
|
||||
virtual void updateCurrentValue(const QVariant &value);
|
||||
virtual QVariant interpolated(const QVariant &from, const QVariant &to, qreal progress) const;
|
||||
|
@ -74,12 +74,12 @@ public:
|
||||
static QTextCodec *codecForNameUnlocked(const char *name);
|
||||
static QTextCodec *codecForMibUnlocked(int mib);
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
private:
|
||||
QIcuCodec(const char *name);
|
||||
|
@ -65,11 +65,11 @@ public:
|
||||
|
||||
static QTextCodec *create(const char *name);
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
private:
|
||||
int idx;
|
||||
|
@ -63,12 +63,12 @@ class QLatin1Codec : public QTextCodec
|
||||
public:
|
||||
~QLatin1Codec();
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
};
|
||||
|
||||
|
||||
@ -78,12 +78,12 @@ class QLatin15Codec: public QTextCodec
|
||||
public:
|
||||
~QLatin15Codec();
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
};
|
||||
|
||||
#endif // QT_NO_TEXTCODEC
|
||||
|
@ -91,11 +91,11 @@ class QTsciiCodec : public QTextCodec {
|
||||
public:
|
||||
~QTsciiCodec();
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
};
|
||||
|
||||
#endif // QT_NO_CODECS
|
||||
|
@ -310,11 +310,11 @@ class QUtf8Codec : public QTextCodec {
|
||||
public:
|
||||
~QUtf8Codec();
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
void convertToUnicode(QString *target, const char *, int, ConverterState *) const;
|
||||
};
|
||||
|
||||
@ -324,12 +324,12 @@ public:
|
||||
QUtf16Codec() { e = DetectEndianness; }
|
||||
~QUtf16Codec();
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
protected:
|
||||
DataEndianness e;
|
||||
@ -338,17 +338,17 @@ protected:
|
||||
class QUtf16BECodec : public QUtf16Codec {
|
||||
public:
|
||||
QUtf16BECodec() : QUtf16Codec() { e = BigEndianness; }
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
};
|
||||
|
||||
class QUtf16LECodec : public QUtf16Codec {
|
||||
public:
|
||||
QUtf16LECodec() : QUtf16Codec() { e = LittleEndianness; }
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
};
|
||||
|
||||
class QUtf32Codec : public QTextCodec {
|
||||
@ -356,12 +356,12 @@ public:
|
||||
QUtf32Codec() { e = DetectEndianness; }
|
||||
~QUtf32Codec();
|
||||
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const Q_DECL_OVERRIDE;
|
||||
QString convertToUnicode(const char *, int, ConverterState *) const override;
|
||||
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const override;
|
||||
|
||||
protected:
|
||||
DataEndianness e;
|
||||
@ -370,17 +370,17 @@ protected:
|
||||
class QUtf32BECodec : public QUtf32Codec {
|
||||
public:
|
||||
QUtf32BECodec() : QUtf32Codec() { e = BigEndianness; }
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
};
|
||||
|
||||
class QUtf32LECodec : public QUtf32Codec {
|
||||
public:
|
||||
QUtf32LECodec() : QUtf32Codec() { e = LittleEndianness; }
|
||||
QByteArray name() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> aliases() const Q_DECL_OVERRIDE;
|
||||
int mibEnum() const Q_DECL_OVERRIDE;
|
||||
QByteArray name() const override;
|
||||
QList<QByteArray> aliases() const override;
|
||||
int mibEnum() const override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -60,8 +60,8 @@ public:
|
||||
QByteArray *buf;
|
||||
QByteArray defaultBuf;
|
||||
|
||||
virtual qint64 peek(char *data, qint64 maxSize) Q_DECL_OVERRIDE;
|
||||
virtual QByteArray peek(qint64 maxSize) Q_DECL_OVERRIDE;
|
||||
virtual qint64 peek(char *data, qint64 maxSize) override;
|
||||
virtual QByteArray peek(qint64 maxSize) override;
|
||||
|
||||
#ifndef QT_NO_QOBJECT
|
||||
// private slots
|
||||
|
@ -73,22 +73,22 @@ public:
|
||||
inline void setData(const char *data, int len);
|
||||
const QByteArray &data() const;
|
||||
|
||||
bool open(OpenMode openMode) Q_DECL_OVERRIDE;
|
||||
bool open(OpenMode openMode) override;
|
||||
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 pos() const Q_DECL_OVERRIDE;
|
||||
bool seek(qint64 off) Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
bool canReadLine() const Q_DECL_OVERRIDE;
|
||||
void close() override;
|
||||
qint64 size() const override;
|
||||
qint64 pos() const override;
|
||||
bool seek(qint64 off) override;
|
||||
bool atEnd() const override;
|
||||
bool canReadLine() const override;
|
||||
|
||||
protected:
|
||||
#ifndef QT_NO_QOBJECT
|
||||
void connectNotify(const QMetaMethod &) Q_DECL_OVERRIDE;
|
||||
void disconnectNotify(const QMetaMethod &) Q_DECL_OVERRIDE;
|
||||
void connectNotify(const QMetaMethod &) override;
|
||||
void disconnectNotify(const QMetaMethod &) override;
|
||||
#endif
|
||||
qint64 readData(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE;
|
||||
qint64 readData(char *data, qint64 maxlen) override;
|
||||
qint64 writeData(const char *data, qint64 len) override;
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(QBuffer)
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
#endif
|
||||
~QFile();
|
||||
|
||||
QString fileName() const Q_DECL_OVERRIDE;
|
||||
QString fileName() const override;
|
||||
void setFileName(const QString &name);
|
||||
|
||||
#if defined(Q_OS_DARWIN)
|
||||
@ -124,18 +124,18 @@ public:
|
||||
bool copy(const QString &newName);
|
||||
static bool copy(const QString &fileName, const QString &newName);
|
||||
|
||||
bool open(OpenMode flags) Q_DECL_OVERRIDE;
|
||||
bool open(OpenMode flags) override;
|
||||
bool open(FILE *f, OpenMode ioFlags, FileHandleFlags handleFlags=DontCloseHandle);
|
||||
bool open(int fd, OpenMode ioFlags, FileHandleFlags handleFlags=DontCloseHandle);
|
||||
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 size() const override;
|
||||
|
||||
bool resize(qint64 sz) Q_DECL_OVERRIDE;
|
||||
bool resize(qint64 sz) override;
|
||||
static bool resize(const QString &filename, qint64 sz);
|
||||
|
||||
Permissions permissions() const Q_DECL_OVERRIDE;
|
||||
Permissions permissions() const override;
|
||||
static Permissions permissions(const QString &filename);
|
||||
bool setPermissions(Permissions permissionSpec) Q_DECL_OVERRIDE;
|
||||
bool setPermissions(Permissions permissionSpec) override;
|
||||
static bool setPermissions(const QString &filename, Permissions permissionSpec);
|
||||
|
||||
protected:
|
||||
|
@ -100,19 +100,19 @@ public:
|
||||
FileError error() const;
|
||||
void unsetError();
|
||||
|
||||
virtual void close() Q_DECL_OVERRIDE;
|
||||
virtual void close() override;
|
||||
|
||||
bool isSequential() const Q_DECL_OVERRIDE;
|
||||
bool isSequential() const override;
|
||||
|
||||
int handle() const;
|
||||
virtual QString fileName() const;
|
||||
|
||||
qint64 pos() const Q_DECL_OVERRIDE;
|
||||
bool seek(qint64 offset) Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
qint64 pos() const override;
|
||||
bool seek(qint64 offset) override;
|
||||
bool atEnd() const override;
|
||||
bool flush();
|
||||
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 size() const override;
|
||||
|
||||
virtual bool resize(qint64 sz);
|
||||
virtual Permissions permissions() const;
|
||||
@ -139,9 +139,9 @@ protected:
|
||||
QFileDevice(QFileDevicePrivate &dd, QObject *parent = Q_NULLPTR);
|
||||
#endif
|
||||
|
||||
qint64 readData(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE;
|
||||
qint64 readLineData(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
qint64 readData(char *data, qint64 maxlen) override;
|
||||
qint64 writeData(const char *data, qint64 len) override;
|
||||
qint64 readLineData(char *data, qint64 maxlen) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QFileDevice)
|
||||
|
@ -69,7 +69,7 @@ protected:
|
||||
|
||||
inline bool ensureFlushed() const;
|
||||
|
||||
bool putCharHelper(char c) Q_DECL_OVERRIDE;
|
||||
bool putCharHelper(char c) override;
|
||||
|
||||
void setError(QFileDevice::FileError err);
|
||||
void setError(QFileDevice::FileError err, const QString &errorString);
|
||||
|
@ -70,8 +70,8 @@ public:
|
||||
|
||||
static QInotifyFileSystemWatcherEngine *create(QObject *parent);
|
||||
|
||||
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) Q_DECL_OVERRIDE;
|
||||
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) Q_DECL_OVERRIDE;
|
||||
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) override;
|
||||
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void readFromInotify();
|
||||
|
@ -110,8 +110,8 @@ class QPollingFileSystemWatcherEngine : public QFileSystemWatcherEngine
|
||||
public:
|
||||
QPollingFileSystemWatcherEngine(QObject *parent);
|
||||
|
||||
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) Q_DECL_OVERRIDE;
|
||||
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) Q_DECL_OVERRIDE;
|
||||
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) override;
|
||||
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void timeout();
|
||||
|
@ -68,11 +68,11 @@ public:
|
||||
QFSFileEngineIterator(QDir::Filters filters, const QStringList &filterNames);
|
||||
~QFSFileEngineIterator();
|
||||
|
||||
QString next() Q_DECL_OVERRIDE;
|
||||
bool hasNext() const Q_DECL_OVERRIDE;
|
||||
QString next() override;
|
||||
bool hasNext() const override;
|
||||
|
||||
QString currentFileName() const Q_DECL_OVERRIDE;
|
||||
QFileInfo currentFileInfo() const Q_DECL_OVERRIDE;
|
||||
QString currentFileName() const override;
|
||||
QFileInfo currentFileInfo() const override;
|
||||
|
||||
private:
|
||||
void advance() const;
|
||||
|
@ -71,49 +71,49 @@ public:
|
||||
explicit QFSFileEngine(const QString &file);
|
||||
~QFSFileEngine();
|
||||
|
||||
bool open(QIODevice::OpenMode openMode) Q_DECL_OVERRIDE;
|
||||
bool open(QIODevice::OpenMode openMode) override;
|
||||
bool open(QIODevice::OpenMode flags, FILE *fh);
|
||||
bool close() Q_DECL_OVERRIDE;
|
||||
bool flush() Q_DECL_OVERRIDE;
|
||||
bool syncToDisk() Q_DECL_OVERRIDE;
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 pos() const Q_DECL_OVERRIDE;
|
||||
bool seek(qint64) Q_DECL_OVERRIDE;
|
||||
bool isSequential() const Q_DECL_OVERRIDE;
|
||||
bool remove() Q_DECL_OVERRIDE;
|
||||
bool copy(const QString &newName) Q_DECL_OVERRIDE;
|
||||
bool rename(const QString &newName) Q_DECL_OVERRIDE;
|
||||
bool renameOverwrite(const QString &newName) Q_DECL_OVERRIDE;
|
||||
bool link(const QString &newName) Q_DECL_OVERRIDE;
|
||||
bool mkdir(const QString &dirName, bool createParentDirectories) const Q_DECL_OVERRIDE;
|
||||
bool rmdir(const QString &dirName, bool recurseParentDirectories) const Q_DECL_OVERRIDE;
|
||||
bool setSize(qint64 size) Q_DECL_OVERRIDE;
|
||||
bool caseSensitive() const Q_DECL_OVERRIDE;
|
||||
bool isRelativePath() const Q_DECL_OVERRIDE;
|
||||
QStringList entryList(QDir::Filters filters, const QStringList &filterNames) const Q_DECL_OVERRIDE;
|
||||
FileFlags fileFlags(FileFlags type) const Q_DECL_OVERRIDE;
|
||||
bool setPermissions(uint perms) Q_DECL_OVERRIDE;
|
||||
bool close() override;
|
||||
bool flush() override;
|
||||
bool syncToDisk() override;
|
||||
qint64 size() const override;
|
||||
qint64 pos() const override;
|
||||
bool seek(qint64) override;
|
||||
bool isSequential() const override;
|
||||
bool remove() override;
|
||||
bool copy(const QString &newName) override;
|
||||
bool rename(const QString &newName) override;
|
||||
bool renameOverwrite(const QString &newName) override;
|
||||
bool link(const QString &newName) override;
|
||||
bool mkdir(const QString &dirName, bool createParentDirectories) const override;
|
||||
bool rmdir(const QString &dirName, bool recurseParentDirectories) const override;
|
||||
bool setSize(qint64 size) override;
|
||||
bool caseSensitive() const override;
|
||||
bool isRelativePath() const override;
|
||||
QStringList entryList(QDir::Filters filters, const QStringList &filterNames) const override;
|
||||
FileFlags fileFlags(FileFlags type) const override;
|
||||
bool setPermissions(uint perms) override;
|
||||
QByteArray id() const override;
|
||||
QString fileName(FileName file) const Q_DECL_OVERRIDE;
|
||||
uint ownerId(FileOwner) const Q_DECL_OVERRIDE;
|
||||
QString owner(FileOwner) const Q_DECL_OVERRIDE;
|
||||
bool setFileTime(const QDateTime &newDate, FileTime time) Q_DECL_OVERRIDE;
|
||||
QDateTime fileTime(FileTime time) const Q_DECL_OVERRIDE;
|
||||
void setFileName(const QString &file) Q_DECL_OVERRIDE;
|
||||
int handle() const Q_DECL_OVERRIDE;
|
||||
QString fileName(FileName file) const override;
|
||||
uint ownerId(FileOwner) const override;
|
||||
QString owner(FileOwner) const override;
|
||||
bool setFileTime(const QDateTime &newDate, FileTime time) override;
|
||||
QDateTime fileTime(FileTime time) const override;
|
||||
void setFileName(const QString &file) override;
|
||||
int handle() const override;
|
||||
|
||||
#ifndef QT_NO_FILESYSTEMITERATOR
|
||||
Iterator *beginEntryList(QDir::Filters filters, const QStringList &filterNames) Q_DECL_OVERRIDE;
|
||||
Iterator *endEntryList() Q_DECL_OVERRIDE;
|
||||
Iterator *beginEntryList(QDir::Filters filters, const QStringList &filterNames) override;
|
||||
Iterator *endEntryList() override;
|
||||
#endif
|
||||
|
||||
qint64 read(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
qint64 readLine(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
qint64 write(const char *data, qint64 len) Q_DECL_OVERRIDE;
|
||||
qint64 read(char *data, qint64 maxlen) override;
|
||||
qint64 readLine(char *data, qint64 maxlen) override;
|
||||
qint64 write(const char *data, qint64 len) override;
|
||||
bool cloneTo(QAbstractFileEngine *target) override;
|
||||
|
||||
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0) Q_DECL_OVERRIDE;
|
||||
bool supportsExtension(Extension extension) const Q_DECL_OVERRIDE;
|
||||
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0) override;
|
||||
bool supportsExtension(Extension extension) const override;
|
||||
|
||||
//FS only!!
|
||||
bool open(QIODevice::OpenMode flags, int fd);
|
||||
|
@ -105,12 +105,12 @@ class QNonContiguousByteDeviceByteArrayImpl : public QNonContiguousByteDevice
|
||||
public:
|
||||
QNonContiguousByteDeviceByteArrayImpl(QByteArray *ba);
|
||||
~QNonContiguousByteDeviceByteArrayImpl();
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) Q_DECL_OVERRIDE;
|
||||
bool advanceReadPointer(qint64 amount) Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
bool reset() Q_DECL_OVERRIDE;
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 pos() const Q_DECL_OVERRIDE;
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) override;
|
||||
bool advanceReadPointer(qint64 amount) override;
|
||||
bool atEnd() const override;
|
||||
bool reset() override;
|
||||
qint64 size() const override;
|
||||
qint64 pos() const override;
|
||||
protected:
|
||||
QByteArray* byteArray;
|
||||
qint64 currentPosition;
|
||||
@ -121,12 +121,12 @@ class QNonContiguousByteDeviceRingBufferImpl : public QNonContiguousByteDevice
|
||||
public:
|
||||
QNonContiguousByteDeviceRingBufferImpl(QSharedPointer<QRingBuffer> rb);
|
||||
~QNonContiguousByteDeviceRingBufferImpl();
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) Q_DECL_OVERRIDE;
|
||||
bool advanceReadPointer(qint64 amount) Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
bool reset() Q_DECL_OVERRIDE;
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 pos() const Q_DECL_OVERRIDE;
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) override;
|
||||
bool advanceReadPointer(qint64 amount) override;
|
||||
bool atEnd() const override;
|
||||
bool reset() override;
|
||||
qint64 size() const override;
|
||||
qint64 pos() const override;
|
||||
protected:
|
||||
QSharedPointer<QRingBuffer> ringBuffer;
|
||||
qint64 currentPosition;
|
||||
@ -139,12 +139,12 @@ class QNonContiguousByteDeviceIoDeviceImpl : public QNonContiguousByteDevice
|
||||
public:
|
||||
QNonContiguousByteDeviceIoDeviceImpl(QIODevice *d);
|
||||
~QNonContiguousByteDeviceIoDeviceImpl();
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) Q_DECL_OVERRIDE;
|
||||
bool advanceReadPointer(qint64 amount) Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
bool reset() Q_DECL_OVERRIDE;
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
qint64 pos() const Q_DECL_OVERRIDE;
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) override;
|
||||
bool advanceReadPointer(qint64 amount) override;
|
||||
bool atEnd() const override;
|
||||
bool reset() override;
|
||||
qint64 size() const override;
|
||||
qint64 pos() const override;
|
||||
protected:
|
||||
QIODevice* device;
|
||||
QByteArray* currentReadBuffer;
|
||||
@ -162,11 +162,11 @@ class QNonContiguousByteDeviceBufferImpl : public QNonContiguousByteDevice
|
||||
public:
|
||||
QNonContiguousByteDeviceBufferImpl(QBuffer *b);
|
||||
~QNonContiguousByteDeviceBufferImpl();
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) Q_DECL_OVERRIDE;
|
||||
bool advanceReadPointer(qint64 amount) Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE;
|
||||
bool reset() Q_DECL_OVERRIDE;
|
||||
qint64 size() const Q_DECL_OVERRIDE;
|
||||
const char* readPointer(qint64 maximumLength, qint64 &len) override;
|
||||
bool advanceReadPointer(qint64 amount) override;
|
||||
bool atEnd() const override;
|
||||
bool reset() override;
|
||||
qint64 size() const override;
|
||||
protected:
|
||||
QBuffer* buffer;
|
||||
QByteArray byteArray;
|
||||
@ -179,13 +179,13 @@ class QByteDeviceWrappingIoDevice : public QIODevice
|
||||
public:
|
||||
QByteDeviceWrappingIoDevice (QNonContiguousByteDevice *bd);
|
||||
~QByteDeviceWrappingIoDevice ();
|
||||
virtual bool isSequential () const Q_DECL_OVERRIDE;
|
||||
virtual bool atEnd () const Q_DECL_OVERRIDE;
|
||||
virtual bool reset () Q_DECL_OVERRIDE;
|
||||
virtual qint64 size () const Q_DECL_OVERRIDE;
|
||||
virtual bool isSequential () const override;
|
||||
virtual bool atEnd () const override;
|
||||
virtual bool reset () override;
|
||||
virtual qint64 size () const override;
|
||||
protected:
|
||||
virtual qint64 readData ( char * data, qint64 maxSize ) Q_DECL_OVERRIDE;
|
||||
virtual qint64 writeData ( const char * data, qint64 maxSize ) Q_DECL_OVERRIDE;
|
||||
virtual qint64 readData ( char * data, qint64 maxSize ) override;
|
||||
virtual qint64 writeData ( const char * data, qint64 maxSize ) override;
|
||||
|
||||
QNonContiguousByteDevice *byteDevice;
|
||||
};
|
||||
|
@ -164,7 +164,7 @@ public:
|
||||
#endif
|
||||
void start(OpenMode mode = ReadWrite);
|
||||
bool startDetached(qint64 *pid = nullptr);
|
||||
bool open(OpenMode mode = ReadWrite) Q_DECL_OVERRIDE;
|
||||
bool open(OpenMode mode = ReadWrite) override;
|
||||
|
||||
QString program() const;
|
||||
void setProgram(const QString &program);
|
||||
@ -227,8 +227,8 @@ public:
|
||||
qint64 processId() const;
|
||||
|
||||
bool waitForStarted(int msecs = 30000);
|
||||
bool waitForReadyRead(int msecs = 30000) Q_DECL_OVERRIDE;
|
||||
bool waitForBytesWritten(int msecs = 30000) Q_DECL_OVERRIDE;
|
||||
bool waitForReadyRead(int msecs = 30000) override;
|
||||
bool waitForBytesWritten(int msecs = 30000) override;
|
||||
bool waitForFinished(int msecs = 30000);
|
||||
|
||||
QByteArray readAllStandardOutput();
|
||||
@ -238,12 +238,12 @@ public:
|
||||
QProcess::ExitStatus exitStatus() const;
|
||||
|
||||
// QIODevice
|
||||
qint64 bytesAvailable() const Q_DECL_OVERRIDE; // ### Qt6: remove trivial override
|
||||
qint64 bytesToWrite() const Q_DECL_OVERRIDE;
|
||||
bool isSequential() const Q_DECL_OVERRIDE;
|
||||
bool canReadLine() const Q_DECL_OVERRIDE; // ### Qt6: remove trivial override
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
bool atEnd() const Q_DECL_OVERRIDE; // ### Qt6: remove trivial override
|
||||
qint64 bytesAvailable() const override; // ### Qt6: remove trivial override
|
||||
qint64 bytesToWrite() const override;
|
||||
bool isSequential() const override;
|
||||
bool canReadLine() const override; // ### Qt6: remove trivial override
|
||||
void close() override;
|
||||
bool atEnd() const override; // ### Qt6: remove trivial override
|
||||
|
||||
static int execute(const QString &program, const QStringList &arguments);
|
||||
static int execute(const QString &command);
|
||||
@ -286,8 +286,8 @@ protected:
|
||||
virtual void setupChildProcess();
|
||||
|
||||
// QIODevice
|
||||
qint64 readData(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE;
|
||||
qint64 readData(char *data, qint64 maxlen) override;
|
||||
qint64 writeData(const char *data, qint64 len) override;
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(QProcess)
|
||||
|
@ -911,8 +911,8 @@ public:
|
||||
inline QDynamicBufferResourceRoot(const QString &_root) : root(_root), buffer(0) { }
|
||||
inline ~QDynamicBufferResourceRoot() { }
|
||||
inline const uchar *mappingBuffer() const { return buffer; }
|
||||
virtual QString mappingRoot() const Q_DECL_OVERRIDE { return root; }
|
||||
virtual ResourceRootType type() const Q_DECL_OVERRIDE { return Resource_Buffer; }
|
||||
virtual QString mappingRoot() const override { return root; }
|
||||
virtual ResourceRootType type() const override { return Resource_Buffer; }
|
||||
|
||||
// size == -1 means "unknown"
|
||||
bool registerSelf(const uchar *b, int size)
|
||||
@ -994,7 +994,7 @@ public:
|
||||
}
|
||||
}
|
||||
QString mappingFile() const { return fileName; }
|
||||
virtual ResourceRootType type() const Q_DECL_OVERRIDE { return Resource_File; }
|
||||
virtual ResourceRootType type() const override { return Resource_File; }
|
||||
|
||||
bool registerSelf(const QString &f) {
|
||||
bool fromMM = false;
|
||||
|
@ -63,10 +63,10 @@ public:
|
||||
QResourceFileEngineIterator(QDir::Filters filters, const QStringList &filterNames);
|
||||
~QResourceFileEngineIterator();
|
||||
|
||||
QString next() Q_DECL_OVERRIDE;
|
||||
bool hasNext() const Q_DECL_OVERRIDE;
|
||||
QString next() override;
|
||||
bool hasNext() const override;
|
||||
|
||||
QString currentFileName() const Q_DECL_OVERRIDE;
|
||||
QString currentFileName() const override;
|
||||
|
||||
private:
|
||||
mutable QStringList entries;
|
||||
|
@ -64,52 +64,52 @@ public:
|
||||
explicit QResourceFileEngine(const QString &path);
|
||||
~QResourceFileEngine();
|
||||
|
||||
virtual void setFileName(const QString &file) Q_DECL_OVERRIDE;
|
||||
virtual void setFileName(const QString &file) override;
|
||||
|
||||
virtual bool open(QIODevice::OpenMode flags) Q_DECL_OVERRIDE ;
|
||||
virtual bool close() Q_DECL_OVERRIDE;
|
||||
virtual bool flush() Q_DECL_OVERRIDE;
|
||||
virtual qint64 size() const Q_DECL_OVERRIDE;
|
||||
virtual qint64 pos() const Q_DECL_OVERRIDE;
|
||||
virtual bool open(QIODevice::OpenMode flags) override ;
|
||||
virtual bool close() override;
|
||||
virtual bool flush() override;
|
||||
virtual qint64 size() const override;
|
||||
virtual qint64 pos() const override;
|
||||
virtual bool atEnd() const;
|
||||
virtual bool seek(qint64) Q_DECL_OVERRIDE;
|
||||
virtual qint64 read(char *data, qint64 maxlen) Q_DECL_OVERRIDE;
|
||||
virtual qint64 write(const char *data, qint64 len) Q_DECL_OVERRIDE;
|
||||
virtual bool seek(qint64) override;
|
||||
virtual qint64 read(char *data, qint64 maxlen) override;
|
||||
virtual qint64 write(const char *data, qint64 len) override;
|
||||
|
||||
virtual bool remove() Q_DECL_OVERRIDE;
|
||||
virtual bool copy(const QString &newName) Q_DECL_OVERRIDE;
|
||||
virtual bool rename(const QString &newName) Q_DECL_OVERRIDE;
|
||||
virtual bool link(const QString &newName) Q_DECL_OVERRIDE;
|
||||
virtual bool remove() override;
|
||||
virtual bool copy(const QString &newName) override;
|
||||
virtual bool rename(const QString &newName) override;
|
||||
virtual bool link(const QString &newName) override;
|
||||
|
||||
virtual bool isSequential() const Q_DECL_OVERRIDE;
|
||||
virtual bool isSequential() const override;
|
||||
|
||||
virtual bool isRelativePath() const Q_DECL_OVERRIDE;
|
||||
virtual bool isRelativePath() const override;
|
||||
|
||||
virtual bool mkdir(const QString &dirName, bool createParentDirectories) const Q_DECL_OVERRIDE;
|
||||
virtual bool rmdir(const QString &dirName, bool recurseParentDirectories) const Q_DECL_OVERRIDE;
|
||||
virtual bool mkdir(const QString &dirName, bool createParentDirectories) const override;
|
||||
virtual bool rmdir(const QString &dirName, bool recurseParentDirectories) const override;
|
||||
|
||||
virtual bool setSize(qint64 size) Q_DECL_OVERRIDE;
|
||||
virtual bool setSize(qint64 size) override;
|
||||
|
||||
virtual QStringList entryList(QDir::Filters filters, const QStringList &filterNames) const Q_DECL_OVERRIDE;
|
||||
virtual QStringList entryList(QDir::Filters filters, const QStringList &filterNames) const override;
|
||||
|
||||
virtual bool caseSensitive() const Q_DECL_OVERRIDE;
|
||||
virtual bool caseSensitive() const override;
|
||||
|
||||
virtual FileFlags fileFlags(FileFlags type) const Q_DECL_OVERRIDE;
|
||||
virtual FileFlags fileFlags(FileFlags type) const override;
|
||||
|
||||
virtual bool setPermissions(uint perms) Q_DECL_OVERRIDE;
|
||||
virtual bool setPermissions(uint perms) override;
|
||||
|
||||
virtual QString fileName(QAbstractFileEngine::FileName file) const Q_DECL_OVERRIDE;
|
||||
virtual QString fileName(QAbstractFileEngine::FileName file) const override;
|
||||
|
||||
virtual uint ownerId(FileOwner) const Q_DECL_OVERRIDE;
|
||||
virtual QString owner(FileOwner) const Q_DECL_OVERRIDE;
|
||||
virtual uint ownerId(FileOwner) const override;
|
||||
virtual QString owner(FileOwner) const override;
|
||||
|
||||
virtual QDateTime fileTime(FileTime time) const Q_DECL_OVERRIDE;
|
||||
virtual QDateTime fileTime(FileTime time) const override;
|
||||
|
||||
virtual Iterator *beginEntryList(QDir::Filters filters, const QStringList &filterNames) Q_DECL_OVERRIDE;
|
||||
virtual Iterator *endEntryList() Q_DECL_OVERRIDE;
|
||||
virtual Iterator *beginEntryList(QDir::Filters filters, const QStringList &filterNames) override;
|
||||
virtual Iterator *endEntryList() override;
|
||||
|
||||
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0) Q_DECL_OVERRIDE;
|
||||
bool supportsExtension(Extension extension) const Q_DECL_OVERRIDE;
|
||||
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0) override;
|
||||
bool supportsExtension(Extension extension) const override;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -72,10 +72,10 @@ public:
|
||||
#endif
|
||||
~QSaveFile();
|
||||
|
||||
QString fileName() const Q_DECL_OVERRIDE;
|
||||
QString fileName() const override;
|
||||
void setFileName(const QString &name);
|
||||
|
||||
bool open(OpenMode flags) Q_DECL_OVERRIDE;
|
||||
bool open(OpenMode flags) override;
|
||||
bool commit();
|
||||
|
||||
void cancelWriting();
|
||||
@ -84,10 +84,10 @@ public:
|
||||
bool directWriteFallback() const;
|
||||
|
||||
protected:
|
||||
qint64 writeData(const char *data, qint64 len) Q_DECL_OVERRIDE;
|
||||
qint64 writeData(const char *data, qint64 len) override;
|
||||
|
||||
private:
|
||||
void close() Q_DECL_OVERRIDE;
|
||||
void close() override;
|
||||
#if !QT_CONFIG(translation)
|
||||
static QString tr(const char *string) { return QString::fromLatin1(string); }
|
||||
#endif
|
||||
|
@ -199,7 +199,7 @@ public:
|
||||
|
||||
protected:
|
||||
#ifndef QT_NO_QOBJECT
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
@ -261,17 +261,17 @@ public:
|
||||
QConfFileSettingsPrivate(const QString &fileName, QSettings::Format format);
|
||||
~QConfFileSettingsPrivate();
|
||||
|
||||
void remove(const QString &key) Q_DECL_OVERRIDE;
|
||||
void set(const QString &key, const QVariant &value) Q_DECL_OVERRIDE;
|
||||
bool get(const QString &key, QVariant *value) const Q_DECL_OVERRIDE;
|
||||
void remove(const QString &key) override;
|
||||
void set(const QString &key, const QVariant &value) override;
|
||||
bool get(const QString &key, QVariant *value) const override;
|
||||
|
||||
QStringList children(const QString &prefix, ChildSpec spec) const Q_DECL_OVERRIDE;
|
||||
QStringList children(const QString &prefix, ChildSpec spec) const override;
|
||||
|
||||
void clear() Q_DECL_OVERRIDE;
|
||||
void sync() Q_DECL_OVERRIDE;
|
||||
void flush() Q_DECL_OVERRIDE;
|
||||
bool isWritable() const Q_DECL_OVERRIDE;
|
||||
QString fileName() const Q_DECL_OVERRIDE;
|
||||
void clear() override;
|
||||
void sync() override;
|
||||
void flush() override;
|
||||
bool isWritable() const override;
|
||||
QString fileName() const override;
|
||||
|
||||
bool readIniFile(const QByteArray &data, UnparsedSettingsMap *unparsedIniSections);
|
||||
static bool readIniSection(const QSettingsKey §ion, const QByteArray &data,
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
// ### Hides open(flags)
|
||||
bool open() { return open(QIODevice::ReadWrite); }
|
||||
|
||||
QString fileName() const Q_DECL_OVERRIDE;
|
||||
QString fileName() const override;
|
||||
QString fileTemplate() const;
|
||||
void setFileTemplate(const QString &name);
|
||||
|
||||
@ -95,7 +95,7 @@ public:
|
||||
static QTemporaryFile *createNativeFile(QFile &file);
|
||||
|
||||
protected:
|
||||
bool open(OpenMode flags) Q_DECL_OVERRIDE;
|
||||
bool open(OpenMode flags) override;
|
||||
|
||||
private:
|
||||
friend class QFile;
|
||||
|
@ -482,12 +482,12 @@ class QEmptyItemModel : public QAbstractItemModel
|
||||
{
|
||||
public:
|
||||
explicit QEmptyItemModel(QObject *parent = 0) : QAbstractItemModel(parent) {}
|
||||
QModelIndex index(int, int, const QModelIndex &) const Q_DECL_OVERRIDE { return QModelIndex(); }
|
||||
QModelIndex parent(const QModelIndex &) const Q_DECL_OVERRIDE { return QModelIndex(); }
|
||||
int rowCount(const QModelIndex &) const Q_DECL_OVERRIDE { return 0; }
|
||||
int columnCount(const QModelIndex &) const Q_DECL_OVERRIDE { return 0; }
|
||||
bool hasChildren(const QModelIndex &) const Q_DECL_OVERRIDE { return false; }
|
||||
QVariant data(const QModelIndex &, int) const Q_DECL_OVERRIDE { return QVariant(); }
|
||||
QModelIndex index(int, int, const QModelIndex &) const override { return QModelIndex(); }
|
||||
QModelIndex parent(const QModelIndex &) const override { return QModelIndex(); }
|
||||
int rowCount(const QModelIndex &) const override { return 0; }
|
||||
int columnCount(const QModelIndex &) const override { return 0; }
|
||||
bool hasChildren(const QModelIndex &) const override { return false; }
|
||||
QVariant data(const QModelIndex &, int) const override { return QVariant(); }
|
||||
};
|
||||
|
||||
Q_GLOBAL_STATIC(QEmptyItemModel, qEmptyModel)
|
||||
|
@ -370,12 +370,12 @@ public:
|
||||
explicit QAbstractTableModel(QObject *parent = Q_NULLPTR);
|
||||
~QAbstractTableModel();
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
int row, int column, const QModelIndex &parent) override;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
using QObject::parent;
|
||||
|
||||
@ -384,8 +384,8 @@ protected:
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QAbstractTableModel)
|
||||
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
|
||||
bool hasChildren(const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
bool hasChildren(const QModelIndex &parent) const override;
|
||||
};
|
||||
|
||||
class Q_CORE_EXPORT QAbstractListModel : public QAbstractItemModel
|
||||
@ -396,12 +396,12 @@ public:
|
||||
explicit QAbstractListModel(QObject *parent = Q_NULLPTR);
|
||||
~QAbstractListModel();
|
||||
|
||||
QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
int row, int column, const QModelIndex &parent) override;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
using QObject::parent;
|
||||
|
||||
@ -410,9 +410,9 @@ protected:
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QAbstractListModel)
|
||||
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
|
||||
int columnCount(const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||
bool hasChildren(const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
int columnCount(const QModelIndex &parent) const override;
|
||||
bool hasChildren(const QModelIndex &parent) const override;
|
||||
};
|
||||
|
||||
// inline implementations
|
||||
|
@ -68,34 +68,34 @@ public:
|
||||
Q_INVOKABLE virtual QItemSelection mapSelectionToSource(const QItemSelection &selection) const;
|
||||
Q_INVOKABLE virtual QItemSelection mapSelectionFromSource(const QItemSelection &selection) const;
|
||||
|
||||
bool submit() Q_DECL_OVERRIDE;
|
||||
void revert() Q_DECL_OVERRIDE;
|
||||
bool submit() override;
|
||||
void revert() override;
|
||||
|
||||
QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
QMap<int, QVariant> itemData(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
QMap<int, QVariant> itemData(const QModelIndex &index) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
bool setItemData(const QModelIndex& index, const QMap<int, QVariant> &roles) Q_DECL_OVERRIDE;
|
||||
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
|
||||
bool setItemData(const QModelIndex& index, const QMap<int, QVariant> &roles) override;
|
||||
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole) override;
|
||||
|
||||
QModelIndex buddy(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
bool canFetchMore(const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||
void fetchMore(const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) Q_DECL_OVERRIDE;
|
||||
QSize span(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
QModelIndex buddy(const QModelIndex &index) const override;
|
||||
bool canFetchMore(const QModelIndex &parent) const override;
|
||||
void fetchMore(const QModelIndex &parent) override;
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
||||
QSize span(const QModelIndex &index) const override;
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
|
||||
QMimeData* mimeData(const QModelIndexList &indexes) const Q_DECL_OVERRIDE;
|
||||
QMimeData* mimeData(const QModelIndexList &indexes) const override;
|
||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||
int row, int column, const QModelIndex &parent) const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
QStringList mimeTypes() const Q_DECL_OVERRIDE;
|
||||
Qt::DropActions supportedDragActions() const Q_DECL_OVERRIDE;
|
||||
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
|
||||
int row, int column, const QModelIndex &parent) override;
|
||||
QStringList mimeTypes() const override;
|
||||
Qt::DropActions supportedDragActions() const override;
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void sourceModelChanged(QPrivateSignal);
|
||||
|
@ -57,26 +57,26 @@ public:
|
||||
explicit QIdentityProxyModel(QObject* parent = Q_NULLPTR);
|
||||
~QIdentityProxyModel();
|
||||
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex mapFromSource(const QModelIndex& sourceIndex) const Q_DECL_OVERRIDE;
|
||||
QModelIndex mapToSource(const QModelIndex& proxyIndex) const Q_DECL_OVERRIDE;
|
||||
QModelIndex parent(const QModelIndex& child) const Q_DECL_OVERRIDE;
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;
|
||||
QModelIndex mapFromSource(const QModelIndex& sourceIndex) const override;
|
||||
QModelIndex mapToSource(const QModelIndex& proxyIndex) const override;
|
||||
QModelIndex parent(const QModelIndex& child) const override;
|
||||
using QObject::parent;
|
||||
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;
|
||||
bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) override;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
|
||||
QItemSelection mapSelectionFromSource(const QItemSelection& selection) const Q_DECL_OVERRIDE;
|
||||
QItemSelection mapSelectionToSource(const QItemSelection& selection) const Q_DECL_OVERRIDE;
|
||||
QModelIndexList match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const Q_DECL_OVERRIDE;
|
||||
void setSourceModel(QAbstractItemModel* sourceModel) Q_DECL_OVERRIDE;
|
||||
QItemSelection mapSelectionFromSource(const QItemSelection& selection) const override;
|
||||
QItemSelection mapSelectionToSource(const QItemSelection& selection) const override;
|
||||
QModelIndexList match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const override;
|
||||
void setSourceModel(QAbstractItemModel* sourceModel) override;
|
||||
|
||||
bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) override;
|
||||
bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) override;
|
||||
bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) override;
|
||||
bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) override;
|
||||
|
||||
protected:
|
||||
QIdentityProxyModel(QIdentityProxyModelPrivate &dd, QObject* parent);
|
||||
|
@ -300,7 +300,7 @@ public:
|
||||
void updateChildrenMapping(const QModelIndex &source_parent, Mapping *parent_mapping,
|
||||
Qt::Orientation orient, int start, int end, int delta_item_count, bool remove);
|
||||
|
||||
virtual void _q_sourceModelDestroyed() Q_DECL_OVERRIDE;
|
||||
virtual void _q_sourceModelDestroyed() override;
|
||||
|
||||
bool needsReorder(const QVector<int> &source_rows, const QModelIndex &source_parent) const;
|
||||
|
||||
|
@ -73,13 +73,13 @@ public:
|
||||
explicit QSortFilterProxyModel(QObject *parent = Q_NULLPTR);
|
||||
~QSortFilterProxyModel();
|
||||
|
||||
void setSourceModel(QAbstractItemModel *sourceModel) Q_DECL_OVERRIDE;
|
||||
void setSourceModel(QAbstractItemModel *sourceModel) override;
|
||||
|
||||
QModelIndex mapToSource(const QModelIndex &proxyIndex) const Q_DECL_OVERRIDE;
|
||||
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const Q_DECL_OVERRIDE;
|
||||
QModelIndex mapToSource(const QModelIndex &proxyIndex) const override;
|
||||
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override;
|
||||
|
||||
QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const Q_DECL_OVERRIDE;
|
||||
QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const Q_DECL_OVERRIDE;
|
||||
QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const override;
|
||||
QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const override;
|
||||
|
||||
QRegExp filterRegExp() const;
|
||||
void setFilterRegExp(const QRegExp ®Exp);
|
||||
@ -129,44 +129,44 @@ protected:
|
||||
public:
|
||||
using QObject::parent;
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
|
||||
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
bool setHeaderData(int section, Qt::Orientation orientation,
|
||||
const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
const QVariant &value, int role = Qt::EditRole) override;
|
||||
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const Q_DECL_OVERRIDE;
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
int row, int column, const QModelIndex &parent) override;
|
||||
|
||||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
|
||||
void fetchMore(const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
bool canFetchMore(const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
void fetchMore(const QModelIndex &parent) override;
|
||||
bool canFetchMore(const QModelIndex &parent) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
QModelIndex buddy(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
QModelIndex buddy(const QModelIndex &index) const override;
|
||||
QModelIndexList match(const QModelIndex &start, int role,
|
||||
const QVariant &value, int hits = 1,
|
||||
Qt::MatchFlags flags =
|
||||
Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const Q_DECL_OVERRIDE;
|
||||
QSize span(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) Q_DECL_OVERRIDE;
|
||||
Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const override;
|
||||
QSize span(const QModelIndex &index) const override;
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
||||
|
||||
QStringList mimeTypes() const Q_DECL_OVERRIDE;
|
||||
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
|
||||
QStringList mimeTypes() const override;
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(QSortFilterProxyModel)
|
||||
Q_DISABLE_COPY(QSortFilterProxyModel)
|
||||
|
@ -55,23 +55,23 @@ public:
|
||||
explicit QStringListModel(QObject *parent = Q_NULLPTR);
|
||||
explicit QStringListModel(const QStringList &strings, QObject *parent = Q_NULLPTR);
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) Q_DECL_OVERRIDE;
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
||||
|
||||
QStringList stringList() const;
|
||||
void setStringList(const QStringList &strings);
|
||||
|
||||
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QStringListModel)
|
||||
|
@ -187,7 +187,7 @@ Q_SIGNALS:
|
||||
void applicationVersionChanged();
|
||||
|
||||
protected:
|
||||
bool event(QEvent *) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *) override;
|
||||
|
||||
virtual bool compressEvent(QEvent *, QObject *receiver, QPostEventList *);
|
||||
#endif // QT_NO_QOBJECT
|
||||
|
@ -70,8 +70,8 @@ public:
|
||||
explicit QEventDispatcherGlib(GMainContext *context, QObject *parent = 0);
|
||||
~QEventDispatcherGlib();
|
||||
|
||||
bool processEvents(QEventLoop::ProcessEventsFlags flags) Q_DECL_OVERRIDE;
|
||||
bool hasPendingEvents() Q_DECL_OVERRIDE;
|
||||
bool processEvents(QEventLoop::ProcessEventsFlags flags) override;
|
||||
bool hasPendingEvents() override;
|
||||
|
||||
void registerSocketNotifier(QSocketNotifier *socketNotifier) Q_DECL_FINAL;
|
||||
void unregisterSocketNotifier(QSocketNotifier *socketNotifier) Q_DECL_FINAL;
|
||||
|
@ -105,8 +105,8 @@ public:
|
||||
explicit QEventDispatcherUNIX(QObject *parent = 0);
|
||||
~QEventDispatcherUNIX();
|
||||
|
||||
bool processEvents(QEventLoop::ProcessEventsFlags flags) Q_DECL_OVERRIDE;
|
||||
bool hasPendingEvents() Q_DECL_OVERRIDE;
|
||||
bool processEvents(QEventLoop::ProcessEventsFlags flags) override;
|
||||
bool hasPendingEvents() override;
|
||||
|
||||
void registerSocketNotifier(QSocketNotifier *notifier) Q_DECL_FINAL;
|
||||
void unregisterSocketNotifier(QSocketNotifier *notifier) Q_DECL_FINAL;
|
||||
@ -120,7 +120,7 @@ public:
|
||||
|
||||
void wakeUp() Q_DECL_FINAL;
|
||||
void interrupt() Q_DECL_FINAL;
|
||||
void flush() Q_DECL_OVERRIDE;
|
||||
void flush() override;
|
||||
|
||||
protected:
|
||||
QEventDispatcherUNIX(QEventDispatcherUNIXPrivate &dd, QObject *parent = 0);
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
|
||||
void wakeUp();
|
||||
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void quit();
|
||||
|
@ -432,9 +432,9 @@ struct Q_CORE_EXPORT QAbstractDynamicMetaObject : public QDynamicMetaObjectData,
|
||||
{
|
||||
~QAbstractDynamicMetaObject();
|
||||
|
||||
virtual QAbstractDynamicMetaObject *toDynamicMetaObject(QObject *) Q_DECL_OVERRIDE { return this; }
|
||||
virtual QAbstractDynamicMetaObject *toDynamicMetaObject(QObject *) override { return this; }
|
||||
virtual int createProperty(const char *, const char *) { return -1; }
|
||||
virtual int metaCall(QObject *, QMetaObject::Call c, int _id, void **a) Q_DECL_OVERRIDE
|
||||
virtual int metaCall(QObject *, QMetaObject::Call c, int _id, void **a) override
|
||||
{ return metaCall(c, _id, a); }
|
||||
virtual int metaCall(QMetaObject::Call, int _id, void **) { return _id; } // Compat overload
|
||||
};
|
||||
|
@ -68,7 +68,7 @@ Q_SIGNALS:
|
||||
void activated(int socket, QPrivateSignal);
|
||||
|
||||
protected:
|
||||
bool event(QEvent *) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QSocketNotifier)
|
||||
|
@ -271,7 +271,7 @@ public:
|
||||
Q_SIGNALS:
|
||||
void timeout();
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *) override;
|
||||
};
|
||||
|
||||
QSingleShotTimer::QSingleShotTimer(int msec, Qt::TimerType timerType, const QObject *r, const char *member)
|
||||
|
@ -203,7 +203,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QTimer)
|
||||
|
@ -98,17 +98,17 @@ public:
|
||||
QMimeBinaryProvider(QMimeDatabasePrivate *db);
|
||||
virtual ~QMimeBinaryProvider();
|
||||
|
||||
virtual bool isValid() Q_DECL_OVERRIDE;
|
||||
virtual QMimeType mimeTypeForName(const QString &name) Q_DECL_OVERRIDE;
|
||||
virtual QMimeGlobMatchResult findByFileName(const QString &fileName) Q_DECL_OVERRIDE;
|
||||
virtual QStringList parents(const QString &mime) Q_DECL_OVERRIDE;
|
||||
virtual QString resolveAlias(const QString &name) Q_DECL_OVERRIDE;
|
||||
virtual QStringList listAliases(const QString &name) Q_DECL_OVERRIDE;
|
||||
virtual QMimeType findByMagic(const QByteArray &data, int *accuracyPtr) Q_DECL_OVERRIDE;
|
||||
virtual QList<QMimeType> allMimeTypes() Q_DECL_OVERRIDE;
|
||||
virtual void loadMimeTypePrivate(QMimeTypePrivate &) Q_DECL_OVERRIDE;
|
||||
virtual void loadIcon(QMimeTypePrivate &) Q_DECL_OVERRIDE;
|
||||
virtual void loadGenericIcon(QMimeTypePrivate &) Q_DECL_OVERRIDE;
|
||||
virtual bool isValid() override;
|
||||
virtual QMimeType mimeTypeForName(const QString &name) override;
|
||||
virtual QMimeGlobMatchResult findByFileName(const QString &fileName) override;
|
||||
virtual QStringList parents(const QString &mime) override;
|
||||
virtual QString resolveAlias(const QString &name) override;
|
||||
virtual QStringList listAliases(const QString &name) override;
|
||||
virtual QMimeType findByMagic(const QByteArray &data, int *accuracyPtr) override;
|
||||
virtual QList<QMimeType> allMimeTypes() override;
|
||||
virtual void loadMimeTypePrivate(QMimeTypePrivate &) override;
|
||||
virtual void loadIcon(QMimeTypePrivate &) override;
|
||||
virtual void loadGenericIcon(QMimeTypePrivate &) override;
|
||||
|
||||
private:
|
||||
struct CacheFile;
|
||||
@ -141,14 +141,14 @@ public:
|
||||
QMimeXMLProvider(QMimeDatabasePrivate *db);
|
||||
~QMimeXMLProvider();
|
||||
|
||||
virtual bool isValid() Q_DECL_OVERRIDE;
|
||||
virtual QMimeType mimeTypeForName(const QString &name) Q_DECL_OVERRIDE;
|
||||
virtual QMimeGlobMatchResult findByFileName(const QString &fileName) Q_DECL_OVERRIDE;
|
||||
virtual QStringList parents(const QString &mime) Q_DECL_OVERRIDE;
|
||||
virtual QString resolveAlias(const QString &name) Q_DECL_OVERRIDE;
|
||||
virtual QStringList listAliases(const QString &name) Q_DECL_OVERRIDE;
|
||||
virtual QMimeType findByMagic(const QByteArray &data, int *accuracyPtr) Q_DECL_OVERRIDE;
|
||||
virtual QList<QMimeType> allMimeTypes() Q_DECL_OVERRIDE;
|
||||
virtual bool isValid() override;
|
||||
virtual QMimeType mimeTypeForName(const QString &name) override;
|
||||
virtual QMimeGlobMatchResult findByFileName(const QString &fileName) override;
|
||||
virtual QStringList parents(const QString &mime) override;
|
||||
virtual QString resolveAlias(const QString &name) override;
|
||||
virtual QStringList listAliases(const QString &name) override;
|
||||
virtual QMimeType findByMagic(const QByteArray &data, int *accuracyPtr) override;
|
||||
virtual QList<QMimeType> allMimeTypes() override;
|
||||
|
||||
bool load(const QString &fileName, QString *errorMessage);
|
||||
|
||||
|
@ -73,7 +73,7 @@ protected:
|
||||
virtual void onEntry(QEvent *event) = 0;
|
||||
virtual void onExit(QEvent *event) = 0;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
QAbstractState(QAbstractStatePrivate &dd, QState *parent);
|
||||
|
@ -102,7 +102,7 @@ protected:
|
||||
|
||||
virtual void onTransition(QEvent *event) = 0;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
QAbstractTransition(QAbstractTransitionPrivate &dd, QState *parent);
|
||||
|
@ -65,10 +65,10 @@ public:
|
||||
void setEventType(QEvent::Type type);
|
||||
|
||||
protected:
|
||||
bool eventTest(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onTransition(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool eventTest(QEvent *event) override;
|
||||
void onTransition(QEvent *event) override;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
QEventTransition(QEventTransitionPrivate &dd, QState *parent);
|
||||
|
@ -55,10 +55,10 @@ public:
|
||||
~QFinalState();
|
||||
|
||||
protected:
|
||||
void onEntry(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onExit(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onEntry(QEvent *event) override;
|
||||
void onExit(QEvent *event) override;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
explicit QFinalState(QFinalStatePrivate &dd, QState *parent);
|
||||
|
@ -80,10 +80,10 @@ Q_SIGNALS:
|
||||
void historyTypeChanged(QPrivateSignal);
|
||||
|
||||
protected:
|
||||
void onEntry(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onExit(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onEntry(QEvent *event) override;
|
||||
void onExit(QEvent *event) override;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QHistoryState)
|
||||
|
@ -80,10 +80,10 @@ public:
|
||||
void setSignal(const QByteArray &signal);
|
||||
|
||||
protected:
|
||||
bool eventTest(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onTransition(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool eventTest(QEvent *event) override;
|
||||
void onTransition(QEvent *event) override;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void senderObjectChanged(QPrivateSignal);
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
void unregister();
|
||||
void maybeRegister();
|
||||
|
||||
virtual void callOnTransition(QEvent *e) Q_DECL_OVERRIDE;
|
||||
virtual void callOnTransition(QEvent *e) override;
|
||||
|
||||
const QObject *sender;
|
||||
QByteArray signal;
|
||||
|
@ -396,8 +396,8 @@ public:
|
||||
: QAbstractTransition()
|
||||
{ setTargetState(target); }
|
||||
protected:
|
||||
void onTransition(QEvent *) Q_DECL_OVERRIDE {}
|
||||
bool eventTest(QEvent *) Q_DECL_OVERRIDE { return true; }
|
||||
void onTransition(QEvent *) override {}
|
||||
bool eventTest(QEvent *) override { return true; }
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
@ -116,10 +116,10 @@ Q_SIGNALS:
|
||||
void errorStateChanged(QPrivateSignal);
|
||||
|
||||
protected:
|
||||
void onEntry(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onExit(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onEntry(QEvent *event) override;
|
||||
void onExit(QEvent *event) override;
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
QState(QStatePrivate &dd, QState *parent);
|
||||
|
@ -1721,8 +1721,8 @@ QAbstractTransition *QStateMachinePrivate::createInitialTransition() const
|
||||
: QAbstractTransition()
|
||||
{ setTargetStates(targets); }
|
||||
protected:
|
||||
virtual bool eventTest(QEvent *) Q_DECL_OVERRIDE { return true; }
|
||||
virtual void onTransition(QEvent *) Q_DECL_OVERRIDE {}
|
||||
virtual bool eventTest(QEvent *) override { return true; }
|
||||
virtual void onTransition(QEvent *) override {}
|
||||
};
|
||||
|
||||
QState *root = rootState();
|
||||
@ -2126,8 +2126,8 @@ public:
|
||||
: QAbstractTransition()
|
||||
{ setTargetState(target); }
|
||||
protected:
|
||||
void onTransition(QEvent *) Q_DECL_OVERRIDE { deleteLater(); }
|
||||
bool eventTest(QEvent *) Q_DECL_OVERRIDE { return true; }
|
||||
void onTransition(QEvent *) override { deleteLater(); }
|
||||
bool eventTest(QEvent *) override { return true; }
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
@ -141,7 +141,7 @@ public:
|
||||
QSet<QAbstractState*> configuration() const;
|
||||
|
||||
#if QT_CONFIG(qeventtransition)
|
||||
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool eventFilter(QObject *watched, QEvent *event) override;
|
||||
#endif
|
||||
|
||||
public Q_SLOTS:
|
||||
@ -156,8 +156,8 @@ Q_SIGNALS:
|
||||
|
||||
|
||||
protected:
|
||||
void onEntry(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onExit(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void onEntry(QEvent *event) override;
|
||||
void onExit(QEvent *event) override;
|
||||
|
||||
virtual void beginSelectTransitions(QEvent *event);
|
||||
virtual void endSelectTransitions(QEvent *event);
|
||||
@ -165,7 +165,7 @@ protected:
|
||||
virtual void beginMicrostep(QEvent *event);
|
||||
virtual void endMicrostep(QEvent *event);
|
||||
|
||||
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
QStateMachine(QStateMachinePrivate &dd, QObject *parent);
|
||||
|
@ -80,8 +80,8 @@ public:
|
||||
throw()
|
||||
#endif
|
||||
;
|
||||
void raise() const Q_DECL_OVERRIDE;
|
||||
QUnhandledException *clone() const Q_DECL_OVERRIDE;
|
||||
void raise() const override;
|
||||
QUnhandledException *clone() const override;
|
||||
};
|
||||
|
||||
namespace QtPrivate {
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
|
||||
void setPendingResultsLimit(int limit);
|
||||
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void started();
|
||||
@ -98,8 +98,8 @@ public Q_SLOTS:
|
||||
void togglePaused();
|
||||
|
||||
protected:
|
||||
void connectNotify (const QMetaMethod &signal) Q_DECL_OVERRIDE;
|
||||
void disconnectNotify (const QMetaMethod &signal) Q_DECL_OVERRIDE;
|
||||
void connectNotify (const QMetaMethod &signal) override;
|
||||
void disconnectNotify (const QMetaMethod &signal) override;
|
||||
|
||||
// called from setFuture() implemented in template sub-classes
|
||||
void connectOutputInterface();
|
||||
@ -166,8 +166,8 @@ public Q_SLOTS:
|
||||
|
||||
private:
|
||||
QFuture<T> m_future;
|
||||
const QFutureInterfaceBase &futureInterface() const Q_DECL_OVERRIDE { return m_future.d; }
|
||||
QFutureInterfaceBase &futureInterface() Q_DECL_OVERRIDE { return m_future.d; }
|
||||
const QFutureInterfaceBase &futureInterface() const override { return m_future.d; }
|
||||
QFutureInterfaceBase &futureInterface() override { return m_future.d; }
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
@ -197,8 +197,8 @@ public:
|
||||
|
||||
private:
|
||||
QFuture<void> m_future;
|
||||
const QFutureInterfaceBase &futureInterface() const Q_DECL_OVERRIDE { return m_future.d; }
|
||||
QFutureInterfaceBase &futureInterface() Q_DECL_OVERRIDE { return m_future.d; }
|
||||
const QFutureInterfaceBase &futureInterface() const override { return m_future.d; }
|
||||
QFutureInterfaceBase &futureInterface() override { return m_future.d; }
|
||||
};
|
||||
|
||||
Q_INLINE_TEMPLATE void QFutureWatcher<void>::setFuture(const QFuture<void> &_future)
|
||||
|
@ -69,8 +69,8 @@ class QFutureWatcherBasePrivate : public QObjectPrivate,
|
||||
public:
|
||||
QFutureWatcherBasePrivate();
|
||||
|
||||
void postCallOutEvent(const QFutureCallOutEvent &callOutEvent) Q_DECL_OVERRIDE;
|
||||
void callOutInterfaceDisconnected() Q_DECL_OVERRIDE;
|
||||
void postCallOutEvent(const QFutureCallOutEvent &callOutEvent) override;
|
||||
void callOutInterfaceDisconnected() override;
|
||||
|
||||
void sendCallOutEvent(QFutureCallOutEvent *event);
|
||||
|
||||
|
@ -116,7 +116,7 @@ public:
|
||||
QAbstractEventDispatcher *eventDispatcher() const;
|
||||
void setEventDispatcher(QAbstractEventDispatcher *eventDispatcher);
|
||||
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) override;
|
||||
int loopLevel() const;
|
||||
|
||||
#ifdef QTHREAD_HAS_CREATE
|
||||
|
@ -317,7 +317,7 @@ public:
|
||||
void init();
|
||||
|
||||
private:
|
||||
void run() Q_DECL_OVERRIDE;
|
||||
void run() override;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -56,7 +56,7 @@ class QThreadPoolThread : public QThread
|
||||
{
|
||||
public:
|
||||
QThreadPoolThread(QThreadPoolPrivate *manager);
|
||||
void run() Q_DECL_OVERRIDE;
|
||||
void run() override;
|
||||
void registerThreadInactive();
|
||||
|
||||
QWaitCondition runnableReady;
|
||||
|
@ -496,7 +496,7 @@ struct BezierEase : public QEasingCurveFunction
|
||||
}
|
||||
}
|
||||
|
||||
QEasingCurveFunction *copy() const Q_DECL_OVERRIDE
|
||||
QEasingCurveFunction *copy() const override
|
||||
{
|
||||
BezierEase *rv = new BezierEase();
|
||||
rv->_t = _t;
|
||||
@ -532,7 +532,7 @@ struct BezierEase : public QEasingCurveFunction
|
||||
return newT;
|
||||
}
|
||||
|
||||
qreal value(qreal x) Q_DECL_OVERRIDE
|
||||
qreal value(qreal x) override
|
||||
{
|
||||
Q_ASSERT(_bezierCurves.count() % 3 == 0);
|
||||
|
||||
@ -826,7 +826,7 @@ struct TCBEase : public BezierEase
|
||||
: BezierEase(QEasingCurve::TCBSpline)
|
||||
{ }
|
||||
|
||||
qreal value(qreal x) Q_DECL_OVERRIDE
|
||||
qreal value(qreal x) override
|
||||
{
|
||||
Q_ASSERT(_bezierCurves.count() % 3 == 0);
|
||||
|
||||
@ -846,7 +846,7 @@ struct ElasticEase : public QEasingCurveFunction
|
||||
: QEasingCurveFunction(type, qreal(0.3), qreal(1.0))
|
||||
{ }
|
||||
|
||||
QEasingCurveFunction *copy() const Q_DECL_OVERRIDE
|
||||
QEasingCurveFunction *copy() const override
|
||||
{
|
||||
ElasticEase *rv = new ElasticEase(_t);
|
||||
rv->_p = _p;
|
||||
@ -856,7 +856,7 @@ struct ElasticEase : public QEasingCurveFunction
|
||||
return rv;
|
||||
}
|
||||
|
||||
qreal value(qreal t) Q_DECL_OVERRIDE
|
||||
qreal value(qreal t) override
|
||||
{
|
||||
qreal p = (_p < 0) ? qreal(0.3) : _p;
|
||||
qreal a = (_a < 0) ? qreal(1.0) : _a;
|
||||
@ -881,7 +881,7 @@ struct BounceEase : public QEasingCurveFunction
|
||||
: QEasingCurveFunction(type, qreal(0.3), qreal(1.0))
|
||||
{ }
|
||||
|
||||
QEasingCurveFunction *copy() const Q_DECL_OVERRIDE
|
||||
QEasingCurveFunction *copy() const override
|
||||
{
|
||||
BounceEase *rv = new BounceEase(_t);
|
||||
rv->_a = _a;
|
||||
@ -890,7 +890,7 @@ struct BounceEase : public QEasingCurveFunction
|
||||
return rv;
|
||||
}
|
||||
|
||||
qreal value(qreal t) Q_DECL_OVERRIDE
|
||||
qreal value(qreal t) override
|
||||
{
|
||||
qreal a = (_a < 0) ? qreal(1.0) : _a;
|
||||
switch(_t) {
|
||||
@ -914,7 +914,7 @@ struct BackEase : public QEasingCurveFunction
|
||||
: QEasingCurveFunction(type, qreal(0.3), qreal(1.0), qreal(1.70158))
|
||||
{ }
|
||||
|
||||
QEasingCurveFunction *copy() const Q_DECL_OVERRIDE
|
||||
QEasingCurveFunction *copy() const override
|
||||
{
|
||||
BackEase *rv = new BackEase(_t);
|
||||
rv->_o = _o;
|
||||
@ -923,7 +923,7 @@ struct BackEase : public QEasingCurveFunction
|
||||
return rv;
|
||||
}
|
||||
|
||||
qreal value(qreal t) Q_DECL_OVERRIDE
|
||||
qreal value(qreal t) override
|
||||
{
|
||||
qreal o = (_o < 0) ? qreal(1.70158) : _o;
|
||||
switch(_t) {
|
||||
|
@ -127,7 +127,7 @@ Q_SIGNALS:
|
||||
void finished(QPrivateSignal);
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *event) override;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(QTimeLine)
|
||||
|
@ -189,26 +189,26 @@ public:
|
||||
|
||||
QUtcTimeZonePrivate *clone() const override;
|
||||
|
||||
Data data(qint64 forMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data data(qint64 forMSecsSinceEpoch) const override;
|
||||
|
||||
QLocale::Country country() const Q_DECL_OVERRIDE;
|
||||
QString comment() const Q_DECL_OVERRIDE;
|
||||
QLocale::Country country() const override;
|
||||
QString comment() const override;
|
||||
|
||||
QString displayName(QTimeZone::TimeType timeType,
|
||||
QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
QByteArray systemTimeZoneId() const Q_DECL_OVERRIDE;
|
||||
QByteArray systemTimeZoneId() const override;
|
||||
|
||||
QList<QByteArray> availableTimeZoneIds() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds(QLocale::Country country) const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds(int utcOffset) const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds() const override;
|
||||
QList<QByteArray> availableTimeZoneIds(QLocale::Country country) const override;
|
||||
QList<QByteArray> availableTimeZoneIds(int utcOffset) const override;
|
||||
|
||||
void serialize(QDataStream &ds) const Q_DECL_OVERRIDE;
|
||||
void serialize(QDataStream &ds) const override;
|
||||
|
||||
private:
|
||||
void init(const QByteArray &zoneId);
|
||||
@ -237,27 +237,27 @@ public:
|
||||
QIcuTimeZonePrivate *clone() const override;
|
||||
|
||||
QString displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const override;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasDaylightTime() const Q_DECL_OVERRIDE;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasDaylightTime() const override;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
Data data(qint64 forMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data data(qint64 forMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasTransitions() const Q_DECL_OVERRIDE;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasTransitions() const override;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const override;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const override;
|
||||
|
||||
QByteArray systemTimeZoneId() const Q_DECL_OVERRIDE;
|
||||
QByteArray systemTimeZoneId() const override;
|
||||
|
||||
QList<QByteArray> availableTimeZoneIds() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds(QLocale::Country country) const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds(int offsetFromUtc) const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds() const override;
|
||||
QList<QByteArray> availableTimeZoneIds(QLocale::Country country) const override;
|
||||
QList<QByteArray> availableTimeZoneIds(int offsetFromUtc) const override;
|
||||
|
||||
private:
|
||||
void init(const QByteArray &ianaId);
|
||||
@ -297,34 +297,34 @@ public:
|
||||
|
||||
QTzTimeZonePrivate *clone() const override;
|
||||
|
||||
QLocale::Country country() const Q_DECL_OVERRIDE;
|
||||
QString comment() const Q_DECL_OVERRIDE;
|
||||
QLocale::Country country() const override;
|
||||
QString comment() const override;
|
||||
|
||||
QString displayName(qint64 atMSecsSinceEpoch,
|
||||
QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString displayName(QTimeZone::TimeType timeType,
|
||||
QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const override;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasDaylightTime() const Q_DECL_OVERRIDE;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasDaylightTime() const override;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
Data data(qint64 forMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data data(qint64 forMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasTransitions() const Q_DECL_OVERRIDE;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasTransitions() const override;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const override;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const override;
|
||||
|
||||
QByteArray systemTimeZoneId() const Q_DECL_OVERRIDE;
|
||||
QByteArray systemTimeZoneId() const override;
|
||||
|
||||
QList<QByteArray> availableTimeZoneIds() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds(QLocale::Country country) const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds() const override;
|
||||
QList<QByteArray> availableTimeZoneIds(QLocale::Country country) const override;
|
||||
|
||||
private:
|
||||
void init(const QByteArray &ianaId);
|
||||
@ -353,28 +353,28 @@ public:
|
||||
|
||||
QMacTimeZonePrivate *clone() const override;
|
||||
|
||||
QString comment() const Q_DECL_OVERRIDE;
|
||||
QString comment() const override;
|
||||
|
||||
QString displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const override;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasDaylightTime() const Q_DECL_OVERRIDE;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasDaylightTime() const override;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
Data data(qint64 forMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data data(qint64 forMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasTransitions() const Q_DECL_OVERRIDE;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasTransitions() const override;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const override;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const override;
|
||||
|
||||
QByteArray systemTimeZoneId() const Q_DECL_OVERRIDE;
|
||||
QByteArray systemTimeZoneId() const override;
|
||||
|
||||
QList<QByteArray> availableTimeZoneIds() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds() const override;
|
||||
|
||||
NSTimeZone *nsTimeZone() const;
|
||||
|
||||
@ -406,28 +406,28 @@ public:
|
||||
|
||||
QWinTimeZonePrivate *clone() const override;
|
||||
|
||||
QString comment() const Q_DECL_OVERRIDE;
|
||||
QString comment() const override;
|
||||
|
||||
QString displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const override;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasDaylightTime() const Q_DECL_OVERRIDE;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasDaylightTime() const override;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
Data data(qint64 forMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data data(qint64 forMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasTransitions() const Q_DECL_OVERRIDE;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasTransitions() const override;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const override;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const override;
|
||||
|
||||
QByteArray systemTimeZoneId() const Q_DECL_OVERRIDE;
|
||||
QByteArray systemTimeZoneId() const override;
|
||||
|
||||
QList<QByteArray> availableTimeZoneIds() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds() const override;
|
||||
|
||||
private:
|
||||
void init(const QByteArray &ianaId);
|
||||
@ -457,25 +457,25 @@ public:
|
||||
QAndroidTimeZonePrivate *clone() const override;
|
||||
|
||||
QString displayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType,
|
||||
const QLocale &locale) const Q_DECL_OVERRIDE;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
const QLocale &locale) const override;
|
||||
QString abbreviation(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
int offsetFromUtc(qint64 atMSecsSinceEpoch) const override;
|
||||
int standardTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
int daylightTimeOffset(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasDaylightTime() const Q_DECL_OVERRIDE;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasDaylightTime() const override;
|
||||
bool isDaylightTime(qint64 atMSecsSinceEpoch) const override;
|
||||
|
||||
Data data(qint64 forMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data data(qint64 forMSecsSinceEpoch) const override;
|
||||
|
||||
bool hasTransitions() const Q_DECL_OVERRIDE;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const Q_DECL_OVERRIDE;
|
||||
bool hasTransitions() const override;
|
||||
Data nextTransition(qint64 afterMSecsSinceEpoch) const override;
|
||||
Data previousTransition(qint64 beforeMSecsSinceEpoch) const override;
|
||||
|
||||
QByteArray systemTimeZoneId() const Q_DECL_OVERRIDE;
|
||||
QByteArray systemTimeZoneId() const override;
|
||||
|
||||
QList<QByteArray> availableTimeZoneIds() const Q_DECL_OVERRIDE;
|
||||
QList<QByteArray> availableTimeZoneIds() const override;
|
||||
|
||||
private:
|
||||
void init(const QByteArray &zoneId);
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
: QMetaCallEvent(0, 0, Q_NULLPTR, sender, m.methodIndex())
|
||||
{}
|
||||
|
||||
void placeMetaCall(QObject *object) Q_DECL_OVERRIDE
|
||||
void placeMetaCall(QObject *object) override
|
||||
{
|
||||
QDBusAbstractInterface *iface = static_cast<QDBusAbstractInterface *>(object);
|
||||
QDBusAbstractInterfacePrivate::finishDisconnectNotify(iface, signalId());
|
||||
|
@ -67,7 +67,7 @@ class QDBusAbstractInterfacePrivate;
|
||||
class Q_DBUS_EXPORT QDBusAbstractInterfaceBase: public QObject
|
||||
{
|
||||
public:
|
||||
int qt_metacall(QMetaObject::Call, int, void**) Q_DECL_OVERRIDE;
|
||||
int qt_metacall(QMetaObject::Call, int, void**) override;
|
||||
protected:
|
||||
QDBusAbstractInterfaceBase(QDBusAbstractInterfacePrivate &dd, QObject *parent);
|
||||
private:
|
||||
@ -147,8 +147,8 @@ protected:
|
||||
const QDBusConnection &connection, QObject *parent);
|
||||
QDBusAbstractInterface(QDBusAbstractInterfacePrivate &, QObject *parent);
|
||||
|
||||
void connectNotify(const QMetaMethod &signal) Q_DECL_OVERRIDE;
|
||||
void disconnectNotify(const QMetaMethod &signal) Q_DECL_OVERRIDE;
|
||||
void connectNotify(const QMetaMethod &signal) override;
|
||||
void disconnectNotify(const QMetaMethod &signal) override;
|
||||
QVariant internalPropGet(const char *propname) const;
|
||||
void internalPropSet(const char *propname, const QVariant &value);
|
||||
QDBusMessage internalConstCall(QDBus::CallMode mode,
|
||||
|
@ -271,7 +271,7 @@ private:
|
||||
void _q_newConnection(QDBusConnectionPrivate *newConnection);
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *e) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *e) override;
|
||||
|
||||
public slots:
|
||||
// public slots
|
||||
|
@ -115,8 +115,8 @@ Q_SIGNALS:
|
||||
void NameLost(const QString &);
|
||||
void NameOwnerChanged(const QString &, const QString &, const QString &);
|
||||
protected:
|
||||
void connectNotify(const QMetaMethod &) Q_DECL_OVERRIDE;
|
||||
void disconnectNotify(const QMetaMethod &) Q_DECL_OVERRIDE;
|
||||
void connectNotify(const QMetaMethod &) override;
|
||||
void disconnectNotify(const QMetaMethod &) override;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -85,7 +85,7 @@ signals:
|
||||
void serverRequested(const QString &address, void *server);
|
||||
|
||||
protected:
|
||||
void run() Q_DECL_OVERRIDE;
|
||||
void run() override;
|
||||
|
||||
private:
|
||||
void executeConnectionRequest(ConnectionRequestData *data);
|
||||
|
@ -109,7 +109,7 @@ public:
|
||||
: QMetaCallEvent(0, id, 0, sender, -1), connection(c), message(msg), metaTypes(types), flags(f)
|
||||
{ }
|
||||
|
||||
void placeMetaCall(QObject *object) Q_DECL_OVERRIDE
|
||||
void placeMetaCall(QObject *object) override
|
||||
{
|
||||
QDBusConnectionPrivate::d(connection)->deliverCall(object, flags, message, metaTypes, id());
|
||||
}
|
||||
@ -132,7 +132,7 @@ public:
|
||||
{ }
|
||||
~QDBusActivateObjectEvent();
|
||||
|
||||
void placeMetaCall(QObject *) Q_DECL_OVERRIDE;
|
||||
void placeMetaCall(QObject *) override;
|
||||
|
||||
private:
|
||||
QDBusConnection connection; // just for refcounting
|
||||
@ -151,7 +151,7 @@ public:
|
||||
: QMetaCallEvent(0, 0, Q_NULLPTR, cp, 0), conn(c), msg(msg), hooks(hooks), hookCount(count)
|
||||
{}
|
||||
~QDBusSpyCallEvent();
|
||||
void placeMetaCall(QObject *) Q_DECL_OVERRIDE;
|
||||
void placeMetaCall(QObject *) override;
|
||||
static inline void invokeSpyHooks(const QDBusMessage &msg, const Hook *hooks, int hookCount);
|
||||
|
||||
QDBusConnection conn; // keeps the refcount in QDBusConnectionPrivate up
|
||||
|
@ -62,9 +62,9 @@ public:
|
||||
QObject *parent = Q_NULLPTR);
|
||||
~QDBusInterface();
|
||||
|
||||
virtual const QMetaObject *metaObject() const Q_DECL_OVERRIDE;
|
||||
virtual void *qt_metacast(const char *) Q_DECL_OVERRIDE;
|
||||
virtual int qt_metacall(QMetaObject::Call, int, void **) Q_DECL_OVERRIDE;
|
||||
virtual const QMetaObject *metaObject() const override;
|
||||
virtual void *qt_metacast(const char *) override;
|
||||
virtual int qt_metacall(QMetaObject::Call, int, void **) override;
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(QDBusInterface)
|
||||
|
@ -56,13 +56,13 @@ class Q_GUI_EXPORT QAccessibleObject : public QAccessibleInterface
|
||||
public:
|
||||
explicit QAccessibleObject(QObject *object);
|
||||
|
||||
bool isValid() const Q_DECL_OVERRIDE;
|
||||
QObject *object() const Q_DECL_OVERRIDE;
|
||||
bool isValid() const override;
|
||||
QObject *object() const override;
|
||||
|
||||
// properties
|
||||
QRect rect() const Q_DECL_OVERRIDE;
|
||||
void setText(QAccessible::Text t, const QString &text) Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface *childAt(int x, int y) const Q_DECL_OVERRIDE;
|
||||
QRect rect() const override;
|
||||
void setText(QAccessible::Text t, const QString &text) override;
|
||||
QAccessibleInterface *childAt(int x, int y) const override;
|
||||
|
||||
protected:
|
||||
virtual ~QAccessibleObject();
|
||||
@ -77,20 +77,20 @@ class Q_GUI_EXPORT QAccessibleApplication : public QAccessibleObject
|
||||
public:
|
||||
QAccessibleApplication();
|
||||
|
||||
QWindow *window() const Q_DECL_OVERRIDE;
|
||||
QWindow *window() const override;
|
||||
// relations
|
||||
int childCount() const Q_DECL_OVERRIDE;
|
||||
int indexOfChild(const QAccessibleInterface*) const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface *focusChild() const Q_DECL_OVERRIDE;
|
||||
int childCount() const override;
|
||||
int indexOfChild(const QAccessibleInterface*) const override;
|
||||
QAccessibleInterface *focusChild() const override;
|
||||
|
||||
// navigation
|
||||
QAccessibleInterface *parent() const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface *child(int index) const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface *parent() const override;
|
||||
QAccessibleInterface *child(int index) const override;
|
||||
|
||||
// properties and state
|
||||
QString text(QAccessible::Text t) const Q_DECL_OVERRIDE;
|
||||
QAccessible::Role role() const Q_DECL_OVERRIDE;
|
||||
QAccessible::State state() const Q_DECL_OVERRIDE;
|
||||
QString text(QAccessible::Text t) const override;
|
||||
QAccessible::Role role() const override;
|
||||
QAccessible::State state() const override;
|
||||
};
|
||||
|
||||
#endif // QT_NO_ACCESSIBILITY
|
||||
|
@ -112,18 +112,18 @@ public:
|
||||
QPixmapIconEngine();
|
||||
QPixmapIconEngine(const QPixmapIconEngine &);
|
||||
~QPixmapIconEngine();
|
||||
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override;
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
QPixmapIconEngineEntry *bestMatch(const QSize &size, QIcon::Mode mode, QIcon::State state, bool sizeOnly);
|
||||
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) override;
|
||||
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
|
||||
QString key() const Q_DECL_OVERRIDE;
|
||||
QIconEngine *clone() const Q_DECL_OVERRIDE;
|
||||
bool read(QDataStream &in) Q_DECL_OVERRIDE;
|
||||
bool write(QDataStream &out) const Q_DECL_OVERRIDE;
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
QString key() const override;
|
||||
QIconEngine *clone() const override;
|
||||
bool read(QDataStream &in) override;
|
||||
bool write(QDataStream &out) const override;
|
||||
void virtual_hook(int id, void *data) override;
|
||||
|
||||
private:
|
||||
QPixmapIconEngineEntry *tryMatch(const QSize &size, QIcon::Mode mode, QIcon::State state);
|
||||
|
@ -101,13 +101,13 @@ public:
|
||||
|
||||
struct ScalableEntry : public QIconLoaderEngineEntry
|
||||
{
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
QIcon svgIcon;
|
||||
};
|
||||
|
||||
struct PixmapEntry : public QIconLoaderEngineEntry
|
||||
{
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
QPixmap basePixmap;
|
||||
};
|
||||
|
||||
@ -125,20 +125,20 @@ public:
|
||||
QIconLoaderEngine(const QString& iconName = QString());
|
||||
~QIconLoaderEngine();
|
||||
|
||||
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) Q_DECL_OVERRIDE;
|
||||
QIconEngine *clone() const Q_DECL_OVERRIDE;
|
||||
bool read(QDataStream &in) Q_DECL_OVERRIDE;
|
||||
bool write(QDataStream &out) const Q_DECL_OVERRIDE;
|
||||
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override;
|
||||
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) override;
|
||||
QIconEngine *clone() const override;
|
||||
bool read(QDataStream &in) override;
|
||||
bool write(QDataStream &out) const override;
|
||||
|
||||
Q_GUI_EXPORT static QIconLoaderEngineEntry *entryForSize(const QThemeIconInfo &info, const QSize &size, int scale = 1);
|
||||
|
||||
private:
|
||||
QString key() const Q_DECL_OVERRIDE;
|
||||
QString key() const override;
|
||||
bool hasIcon() const;
|
||||
void ensureLoaded();
|
||||
void virtual_hook(int id, void *data) Q_DECL_OVERRIDE;
|
||||
void virtual_hook(int id, void *data) override;
|
||||
|
||||
QIconLoaderEngine(const QIconLoaderEngine &other);
|
||||
QThemeIconInfo m_info;
|
||||
|
@ -164,7 +164,7 @@ public:
|
||||
|
||||
bool isNull() const;
|
||||
|
||||
int devType() const Q_DECL_OVERRIDE;
|
||||
int devType() const override;
|
||||
|
||||
bool operator==(const QImage &) const;
|
||||
bool operator!=(const QImage &) const;
|
||||
@ -311,7 +311,7 @@ public:
|
||||
#endif
|
||||
qint64 cacheKey() const;
|
||||
|
||||
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE;
|
||||
QPaintEngine *paintEngine() const override;
|
||||
|
||||
// Auxiliary data
|
||||
int dotsPerMeterX() const;
|
||||
@ -349,7 +349,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual int metric(PaintDeviceMetric metric) const Q_DECL_OVERRIDE;
|
||||
virtual int metric(PaintDeviceMetric metric) const override;
|
||||
QImage mirrored_helper(bool horizontal, bool vertical) const;
|
||||
QImage rgbSwapped_helper() const;
|
||||
void mirrored_inplace(bool horizontal, bool vertical);
|
||||
|
@ -68,10 +68,10 @@ public:
|
||||
QPicturePaintEngine();
|
||||
~QPicturePaintEngine();
|
||||
|
||||
bool begin(QPaintDevice *pdev) Q_DECL_OVERRIDE;
|
||||
bool end() Q_DECL_OVERRIDE;
|
||||
bool begin(QPaintDevice *pdev) override;
|
||||
bool end() override;
|
||||
|
||||
void updateState(const QPaintEngineState &state) Q_DECL_OVERRIDE;
|
||||
void updateState(const QPaintEngineState &state) override;
|
||||
|
||||
void updatePen(const QPen &pen);
|
||||
void updateBrush(const QBrush &brush);
|
||||
@ -86,18 +86,18 @@ public:
|
||||
void updateClipEnabled(bool enabled);
|
||||
void updateOpacity(qreal opacity);
|
||||
|
||||
void drawEllipse(const QRectF &rect) Q_DECL_OVERRIDE;
|
||||
void drawPath(const QPainterPath &path) Q_DECL_OVERRIDE;
|
||||
void drawPolygon(const QPointF *points, int numPoints, PolygonDrawMode mode) Q_DECL_OVERRIDE;
|
||||
void drawEllipse(const QRectF &rect) override;
|
||||
void drawPath(const QPainterPath &path) override;
|
||||
void drawPolygon(const QPointF *points, int numPoints, PolygonDrawMode mode) override;
|
||||
using QPaintEngine::drawPolygon;
|
||||
|
||||
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE;
|
||||
void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) Q_DECL_OVERRIDE;
|
||||
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override;
|
||||
void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override;
|
||||
void drawImage(const QRectF &r, const QImage &image, const QRectF &sr,
|
||||
Qt::ImageConversionFlags flags = Qt::AutoColor) Q_DECL_OVERRIDE;
|
||||
void drawTextItem(const QPointF &p, const QTextItem &ti) Q_DECL_OVERRIDE;
|
||||
Qt::ImageConversionFlags flags = Qt::AutoColor) override;
|
||||
void drawTextItem(const QPointF &p, const QTextItem &ti) override;
|
||||
|
||||
Type type() const Q_DECL_OVERRIDE { return Picture; }
|
||||
Type type() const override { return Picture; }
|
||||
|
||||
protected:
|
||||
QPicturePaintEngine(QPaintEnginePrivate &dptr);
|
||||
|
@ -456,8 +456,8 @@ public:
|
||||
QFakeDevice() { dpi_x = qt_defaultDpiX(); dpi_y = qt_defaultDpiY(); }
|
||||
void setDpiX(int dpi) { dpi_x = dpi; }
|
||||
void setDpiY(int dpi) { dpi_y = dpi; }
|
||||
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE { return 0; }
|
||||
int metric(PaintDeviceMetric m) const Q_DECL_OVERRIDE
|
||||
QPaintEngine *paintEngine() const override { return 0; }
|
||||
int metric(PaintDeviceMetric m) const override
|
||||
{
|
||||
switch(m) {
|
||||
case PdmPhysicalDpiX:
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
|
||||
bool isNull() const;
|
||||
|
||||
int devType() const Q_DECL_OVERRIDE;
|
||||
int devType() const override;
|
||||
uint size() const;
|
||||
const char* data() const;
|
||||
virtual void setData(const char* data, uint size);
|
||||
@ -98,12 +98,12 @@ public:
|
||||
static QT_DEPRECATED QStringList outputFormatList();
|
||||
#endif // QT_DEPRECATED_SINCE(5, 10)
|
||||
|
||||
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE;
|
||||
QPaintEngine *paintEngine() const override;
|
||||
|
||||
protected:
|
||||
QPicture(QPicturePrivate &data);
|
||||
|
||||
int metric(PaintDeviceMetric m) const Q_DECL_OVERRIDE;
|
||||
int metric(PaintDeviceMetric m) const override;
|
||||
|
||||
private:
|
||||
bool exec(QPainter *p, QDataStream &ds, int i);
|
||||
|
@ -83,7 +83,7 @@ public:
|
||||
operator QVariant() const;
|
||||
|
||||
bool isNull() const;
|
||||
int devType() const Q_DECL_OVERRIDE;
|
||||
int devType() const override;
|
||||
|
||||
int width() const;
|
||||
int height() const;
|
||||
@ -162,7 +162,7 @@ public:
|
||||
|
||||
bool isQBitmap() const;
|
||||
|
||||
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE;
|
||||
QPaintEngine *paintEngine() const override;
|
||||
|
||||
inline bool operator!() const { return isNull(); }
|
||||
|
||||
@ -172,7 +172,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
int metric(PaintDeviceMetric) const Q_DECL_OVERRIDE;
|
||||
int metric(PaintDeviceMetric) const override;
|
||||
static QPixmap fromImageInPlace(QImage &image, Qt::ImageConversionFlags flags = Qt::AutoColor);
|
||||
|
||||
private:
|
||||
|
@ -69,17 +69,17 @@ public:
|
||||
QBlittable *blittable() const;
|
||||
void setBlittable(QBlittable *blittable);
|
||||
|
||||
void resize(int width, int height) Q_DECL_OVERRIDE;
|
||||
int metric(QPaintDevice::PaintDeviceMetric metric) const Q_DECL_OVERRIDE;
|
||||
void fill(const QColor &color) Q_DECL_OVERRIDE;
|
||||
QImage *buffer() Q_DECL_OVERRIDE;
|
||||
QImage toImage() const Q_DECL_OVERRIDE;
|
||||
bool hasAlphaChannel() const Q_DECL_OVERRIDE;
|
||||
void fromImage(const QImage &image, Qt::ImageConversionFlags flags) Q_DECL_OVERRIDE;
|
||||
qreal devicePixelRatio() const Q_DECL_OVERRIDE;
|
||||
void setDevicePixelRatio(qreal scaleFactor) Q_DECL_OVERRIDE;
|
||||
void resize(int width, int height) override;
|
||||
int metric(QPaintDevice::PaintDeviceMetric metric) const override;
|
||||
void fill(const QColor &color) override;
|
||||
QImage *buffer() override;
|
||||
QImage toImage() const override;
|
||||
bool hasAlphaChannel() const override;
|
||||
void fromImage(const QImage &image, Qt::ImageConversionFlags flags) override;
|
||||
qreal devicePixelRatio() const override;
|
||||
void setDevicePixelRatio(qreal scaleFactor) override;
|
||||
|
||||
QPaintEngine *paintEngine() const Q_DECL_OVERRIDE;
|
||||
QPaintEngine *paintEngine() const override;
|
||||
|
||||
void markRasterOverlay(const QRectF &);
|
||||
void markRasterOverlay(const QPointF &, const QTextItem &);
|
||||
|
@ -63,28 +63,28 @@ public:
|
||||
QRasterPlatformPixmap(PixelType type);
|
||||
~QRasterPlatformPixmap();
|
||||
|
||||
QPlatformPixmap *createCompatiblePlatformPixmap() const Q_DECL_OVERRIDE;
|
||||
QPlatformPixmap *createCompatiblePlatformPixmap() const override;
|
||||
|
||||
void resize(int width, int height) Q_DECL_OVERRIDE;
|
||||
bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags) Q_DECL_OVERRIDE;
|
||||
void fromImage(const QImage &image, Qt::ImageConversionFlags flags) Q_DECL_OVERRIDE;
|
||||
void fromImageInPlace(QImage &image, Qt::ImageConversionFlags flags) Q_DECL_OVERRIDE;
|
||||
void fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags) Q_DECL_OVERRIDE;
|
||||
void resize(int width, int height) override;
|
||||
bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags) override;
|
||||
void fromImage(const QImage &image, Qt::ImageConversionFlags flags) override;
|
||||
void fromImageInPlace(QImage &image, Qt::ImageConversionFlags flags) override;
|
||||
void fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags) override;
|
||||
|
||||
void copy(const QPlatformPixmap *data, const QRect &rect) Q_DECL_OVERRIDE;
|
||||
bool scroll(int dx, int dy, const QRect &rect) Q_DECL_OVERRIDE;
|
||||
void fill(const QColor &color) Q_DECL_OVERRIDE;
|
||||
bool hasAlphaChannel() const Q_DECL_OVERRIDE;
|
||||
QImage toImage() const Q_DECL_OVERRIDE;
|
||||
QImage toImage(const QRect &rect) const Q_DECL_OVERRIDE;
|
||||
QPaintEngine* paintEngine() const Q_DECL_OVERRIDE;
|
||||
QImage* buffer() Q_DECL_OVERRIDE;
|
||||
qreal devicePixelRatio() const Q_DECL_OVERRIDE;
|
||||
void setDevicePixelRatio(qreal scaleFactor) Q_DECL_OVERRIDE;
|
||||
void copy(const QPlatformPixmap *data, const QRect &rect) override;
|
||||
bool scroll(int dx, int dy, const QRect &rect) override;
|
||||
void fill(const QColor &color) override;
|
||||
bool hasAlphaChannel() const override;
|
||||
QImage toImage() const override;
|
||||
QImage toImage(const QRect &rect) const override;
|
||||
QPaintEngine* paintEngine() const override;
|
||||
QImage* buffer() override;
|
||||
qreal devicePixelRatio() const override;
|
||||
void setDevicePixelRatio(qreal scaleFactor) override;
|
||||
|
||||
|
||||
protected:
|
||||
int metric(QPaintDevice::PaintDeviceMetric metric) const Q_DECL_OVERRIDE;
|
||||
int metric(QPaintDevice::PaintDeviceMetric metric) const override;
|
||||
void createPixmapForImage(QImage sourceImage, Qt::ImageConversionFlags flags);
|
||||
void setImage(const QImage &image);
|
||||
QImage image;
|
||||
|
@ -193,7 +193,7 @@ public:
|
||||
QPMCache();
|
||||
~QPMCache();
|
||||
|
||||
void timerEvent(QTimerEvent *) Q_DECL_OVERRIDE;
|
||||
void timerEvent(QTimerEvent *) override;
|
||||
bool insert(const QString& key, const QPixmap &pixmap, int cost);
|
||||
QPixmapCache::Key insert(const QPixmap &pixmap, int cost);
|
||||
bool replace(const QPixmapCache::Key &key, const QPixmap &pixmap, int cost);
|
||||
|
@ -333,39 +333,39 @@ public:
|
||||
|
||||
void setItemRoleNames(const QHash<int,QByteArray> &roleNames);
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
|
||||
// Qt 6: Remove
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const Q_DECL_OVERRIDE;
|
||||
QModelIndex sibling(int row, int column, const QModelIndex &idx) const override;
|
||||
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
|
||||
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
int role = Qt::DisplayRole) const override;
|
||||
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value,
|
||||
int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
int role = Qt::EditRole) override;
|
||||
|
||||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()) override;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
|
||||
QMap<int, QVariant> itemData(const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
bool setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles) Q_DECL_OVERRIDE;
|
||||
QMap<int, QVariant> itemData(const QModelIndex &index) const override;
|
||||
bool setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles) override;
|
||||
|
||||
void clear();
|
||||
|
||||
using QObject::parent;
|
||||
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) Q_DECL_OVERRIDE;
|
||||
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
||||
|
||||
QStandardItem *itemFromIndex(const QModelIndex &index) const;
|
||||
QModelIndex indexFromItem(const QStandardItem *item) const;
|
||||
@ -414,9 +414,9 @@ public:
|
||||
int sortRole() const;
|
||||
void setSortRole(int role);
|
||||
|
||||
QStringList mimeTypes() const Q_DECL_OVERRIDE;
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const Q_DECL_OVERRIDE;
|
||||
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
|
||||
QStringList mimeTypes() const override;
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void itemChanged(QStandardItem *item);
|
||||
|
@ -77,8 +77,8 @@ public:
|
||||
QInternalMimeData();
|
||||
~QInternalMimeData();
|
||||
|
||||
bool hasFormat(const QString &mimeType) const Q_DECL_OVERRIDE;
|
||||
QStringList formats() const Q_DECL_OVERRIDE;
|
||||
bool hasFormat(const QString &mimeType) const override;
|
||||
QStringList formats() const override;
|
||||
static bool canReadData(const QString &mimeType);
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ public:
|
||||
static QByteArray renderDataHelper(const QString &mimeType, const QMimeData *data);
|
||||
|
||||
protected:
|
||||
QVariant retrieveData(const QString &mimeType, QVariant::Type type) const Q_DECL_OVERRIDE;
|
||||
QVariant retrieveData(const QString &mimeType, QVariant::Type type) const override;
|
||||
|
||||
virtual bool hasFormat_sys(const QString &mimeType) const = 0;
|
||||
virtual QStringList formats_sys() const = 0;
|
||||
|
@ -155,7 +155,7 @@ public:
|
||||
static Qt::ApplicationState applicationState();
|
||||
|
||||
static int exec();
|
||||
bool notify(QObject *, QEvent *) Q_DECL_OVERRIDE;
|
||||
bool notify(QObject *, QEvent *) override;
|
||||
|
||||
#ifndef QT_NO_SESSIONMANAGER
|
||||
// session management
|
||||
@ -187,8 +187,8 @@ Q_SIGNALS:
|
||||
void applicationDisplayNameChanged();
|
||||
|
||||
protected:
|
||||
bool event(QEvent *) Q_DECL_OVERRIDE;
|
||||
bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *) override;
|
||||
bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) override;
|
||||
|
||||
QGuiApplication(QGuiApplicationPrivate &p);
|
||||
|
||||
|
@ -85,13 +85,13 @@ public:
|
||||
void init();
|
||||
|
||||
void createPlatformIntegration();
|
||||
void createEventDispatcher() Q_DECL_OVERRIDE;
|
||||
void eventDispatcherReady() Q_DECL_OVERRIDE;
|
||||
void createEventDispatcher() override;
|
||||
void eventDispatcherReady() override;
|
||||
|
||||
virtual void notifyLayoutDirectionChange();
|
||||
virtual void notifyActiveWindowChange(QWindow *previous);
|
||||
|
||||
virtual bool shouldQuit() Q_DECL_OVERRIDE;
|
||||
virtual bool shouldQuit() override;
|
||||
|
||||
bool shouldQuitInternal(const QWindowList &processedWindows);
|
||||
virtual bool tryCloseAllWindows();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user