mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-17 10:07:27 +00:00
24e0bd3afe
This commit fixes a couple of warnings from Qt 5.14 like the following one: error: ‘int QTime::restart()’ is deprecated: Use QElapsedTimer instead [-Werror=deprecated-declarations] This commit changes two uses of QTime to QElapsedTimer, one used only when the "files" debug flag is set, and the other for timing whether a script (e.g., knitr) takes longer than a certain amount of time to run. QElapsedTimer is superior for these two use cases in that it uses a monotonic clock if possible, and is thus more robust to certain changes (e.g., daylight savings changes) [1]. Similarly, the commit in Qt Base that makes this deprecation [2] mentions the following in the commit message: QElapsedTimer does the job better and without the DST kludges. Note that QElapsedTimer class was introduced in Qt 4.7, so no conditioning on Qt version is necessary. Not all methods of QTime are deprecated and we still use some of the non-deprecated methods in our code (e.g., to get the current wall clock time in GuiProgress::currentTime()). [1] https://doc.qt.io/qt-5/qelapsedtimer.html [2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=ed99a591a83a399458f12341d0a1c0b3152f247a |
||
---|---|---|
.. | ||
linkback | ||
tests | ||
.gitignore | ||
AppleScript.h | ||
AppleScript.m | ||
AppleScriptProxy.cpp | ||
AppleSpeller.h | ||
AppleSpeller.m | ||
bind.h | ||
Cache.h | ||
Changer.h | ||
CMakeLists.txt | ||
ConsoleApplication.cpp | ||
ConsoleApplication.h | ||
ConsoleApplicationPrivate.h | ||
convert.cpp | ||
convert.h | ||
copied_ptr.h | ||
debug.cpp | ||
debug.h | ||
docstream.cpp | ||
docstream.h | ||
docstring_list.h | ||
docstring.cpp | ||
docstring.h | ||
environment.cpp | ||
environment.h | ||
ExceptionMessage.h | ||
FileMonitor.cpp | ||
FileMonitor.h | ||
FileName.cpp | ||
FileName.h | ||
FileNameList.h | ||
filetools.cpp | ||
filetools.h | ||
ForkedCalls.cpp | ||
ForkedCalls.h | ||
functional.h | ||
gettext.cpp | ||
gettext.h | ||
gzstream.cpp | ||
gzstream.h | ||
kill.cpp | ||
lassert.cpp | ||
lassert.h | ||
limited_stack.h | ||
lstrings.cpp | ||
lstrings.h | ||
lyxalgo.h | ||
lyxlib.h | ||
lyxmagic.h | ||
lyxtime.cpp | ||
lyxtime.h | ||
Makefile.am | ||
Messages.cpp | ||
Messages.h | ||
mutex.cpp | ||
mutex.h | ||
numpunct_lyx_char_type.h | ||
os_cygwin.cpp | ||
os_unix.cpp | ||
os_win32.cpp | ||
os_win32.h | ||
os.cpp | ||
os.h | ||
Package.cpp | ||
Package.h | ||
PathChanger.cpp | ||
PathChanger.h | ||
pmprof.h | ||
ProgressInterface.h | ||
qstring_helpers.cpp | ||
qstring_helpers.h | ||
RandomAccessList.h | ||
RefChanger.h | ||
regex.h | ||
signals.h | ||
socktools.cpp | ||
socktools.h | ||
strfwd.h | ||
Systemcall.cpp | ||
Systemcall.h | ||
SystemcallPrivate.h | ||
TempFile.cpp | ||
TempFile.h | ||
textutils.h | ||
Timeout.cpp | ||
Timeout.h | ||
Translator.h | ||
trivstring.cpp | ||
trivstring.h | ||
types.h | ||
unicode.cpp | ||
unicode.h | ||
unique_ptr.h | ||
userinfo.cpp | ||
userinfo.h | ||
weighted_btree.h |