QAnimationDriver: mark obsolete functions as deprecated
Mark the two long obsolete (and empty) functions as deprecated so they can be removed with Qt6: - setStartTime()/startTime() Change-Id: I7ee1d99ff194860e41723909f81adc181a71ec7c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
ae44da62ef
commit
b76a923a8e
@ -773,6 +773,7 @@ QAnimationDriver::~QAnimationDriver()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if QT_DEPRECATED_SINCE(5, 13)
|
||||||
/*!
|
/*!
|
||||||
Sets the time at which an animation driver should start at.
|
Sets the time at which an animation driver should start at.
|
||||||
|
|
||||||
@ -799,6 +800,7 @@ qint64 QAnimationDriver::startTime() const
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -147,9 +147,10 @@ public:
|
|||||||
|
|
||||||
virtual qint64 elapsed() const;
|
virtual qint64 elapsed() const;
|
||||||
|
|
||||||
// ### Qt6: Remove these two functions
|
#if QT_DEPRECATED_SINCE(5, 13)
|
||||||
void setStartTime(qint64 startTime);
|
QT_DEPRECATED void setStartTime(qint64 startTime);
|
||||||
qint64 startTime() const;
|
QT_DEPRECATED qint64 startTime() const;
|
||||||
|
#endif
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void started();
|
void started();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user