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:
Christian Ehrlicher 2019-02-02 14:50:19 +01:00
parent ae44da62ef
commit b76a923a8e
2 changed files with 6 additions and 3 deletions

View File

@ -773,6 +773,7 @@ QAnimationDriver::~QAnimationDriver()
}
#if QT_DEPRECATED_SINCE(5, 13)
/*!
Sets the time at which an animation driver should start at.
@ -799,6 +800,7 @@ qint64 QAnimationDriver::startTime() const
{
return 0;
}
#endif
/*!

View File

@ -147,9 +147,10 @@ public:
virtual qint64 elapsed() const;
// ### Qt6: Remove these two functions
void setStartTime(qint64 startTime);
qint64 startTime() const;
#if QT_DEPRECATED_SINCE(5, 13)
QT_DEPRECATED void setStartTime(qint64 startTime);
QT_DEPRECATED qint64 startTime() const;
#endif
Q_SIGNALS:
void started();