Your message dated Mon, 01 Jun 2020 10:49:36 +0000
with message-id <[email protected]>
and subject line Bug#961133: fixed in qcustomplot 2.0.1+dfsg1-2
has caused the Debian Bug report #961133,
regarding qcustomplot: buildtest-plot autopkgtest fails with Qt 5.14 because of
deprecation warning
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
961133: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961133
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: qcustomplot
Version: 2.0.1+dfsg1-1
Tags: patch
User: [email protected]
Usertags: qt5.14
Dear Maintainer,
One of qcustomplot autopkgtests fails when run against Qt 5.14, currently
available in experimental. It fails because of stderr:
[ 83%] Building CXX object CMakeFiles/plots.dir/mainwindow.cpp.o
/tmp/tmp.vk2CMqIqRc/src/mainwindow.cpp: In member function ‘void
MainWindow::realtimeDataSlot()’:
/tmp/tmp.vk2CMqIqRc/src/mainwindow.cpp:1386:29: warning: ‘int
QTime::elapsed() const’ is deprecated: Use QElapsedTimer instead
[-Wdeprecated-declarations]
1386 | double key = time.elapsed()/1000.0; // time elapsed since start of
demo, in seconds
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDateTime:1,
from /usr/include/qcustomplot.h:61,
from /tmp/tmp.vk2CMqIqRc/src/mainwindow.h:47,
from /tmp/tmp.vk2CMqIqRc/src/mainwindow.cpp:42:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdatetime.h:230:54: note: declared
here
230 | QT_DEPRECATED_X("Use QElapsedTimer instead") int elapsed() const;
| ^~~~~~~
Attached is a patch that changes the code to use QElapsedTimer, as suggested.
It works with Qt 5.12 too.
--
Dmitry Shachnev
Description: use QElapsedTimer instead of deprecated QTime::elapsed()
Author: Dmitry Shachnev <[email protected]>
Forwarded: no
Last-Update: 2020-05-19
--- a/examples/plots/mainwindow.cpp
+++ b/examples/plots/mainwindow.cpp
@@ -1381,9 +1381,11 @@ void MainWindow::setupFinancialDemo(QCus
void MainWindow::realtimeDataSlot()
{
- static QTime time(QTime::currentTime());
+ static QElapsedTimer timer;
+ if (!timer.isValid())
+ timer.start();
// calculate two new data points:
- double key = time.elapsed()/1000.0; // time elapsed since start of demo, in seconds
+ double key = timer.elapsed()/1000.0; // time elapsed since start of demo, in seconds
static double lastPointKey = 0;
if (key-lastPointKey > 0.002) // at most add point every 2 ms
{
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: qcustomplot
Source-Version: 2.0.1+dfsg1-2
Done: Anton Gladky <[email protected]>
We believe that the bug you reported is fixed in the latest version of
qcustomplot, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Anton Gladky <[email protected]> (supplier of updated qcustomplot package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 01 Jun 2020 12:32:40 +0200
Source: qcustomplot
Architecture: source
Version: 2.0.1+dfsg1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<[email protected]>
Changed-By: Anton Gladky <[email protected]>
Closes: 961133
Changes:
qcustomplot (2.0.1+dfsg1-2) unstable; urgency=medium
.
[ Anton Gladky ]
* [f92a309] Trim trailing whitespace.
* [91a0c03] Use secure URI in Homepage field.
* [50c4e99] Bump debhelper from deprecated 9 to 13.
* [b12bb5f] Set debhelper-compat version in Build-Depends.
* [d9b43c1] Use canonical URL in Vcs-Browser.
* [3ee77ff] Drop unnecessary dh arguments: --parallel
* [3e86a9e] Update standards version to 4.5.0, no changes needed.
* [c107d28] Add Rules-Requires-Root: no
* [dc969f3] .gitlab-ci.yml
.
[ Dmitry Shachnev ]
* [c5966e3] Use QElapsedTimer instead of deprecated QTime::elapsed().
(Closes: #961133)
Checksums-Sha1:
ae11f49e86336da8ad7b2b81d647f5ed134aba45 2232 qcustomplot_2.0.1+dfsg1-2.dsc
dd5278d0a14b60cf0954d6b496734fbd29c4fb2c 5028
qcustomplot_2.0.1+dfsg1-2.debian.tar.xz
928dbd45569d597d928a0d530cc246dff4b3b5aa 10430
qcustomplot_2.0.1+dfsg1-2_source.buildinfo
Checksums-Sha256:
3cb3f8a01e1b4cbb27e68958632336e721ac010251c7ba3586ebc1f4be79f640 2232
qcustomplot_2.0.1+dfsg1-2.dsc
a12a02612ca4471536f02eb6e1bde8c0aea188a329a2571bdbb9da0b6cd9c98f 5028
qcustomplot_2.0.1+dfsg1-2.debian.tar.xz
d24dda8897de3f0ce7641cd0cd79ab517edf1f4d79612c400636e8e2c1d68c53 10430
qcustomplot_2.0.1+dfsg1-2_source.buildinfo
Files:
989121527a8c9c6df36af0a49ad25ab7 2232 libs optional
qcustomplot_2.0.1+dfsg1-2.dsc
6e132c1bfcf63279e98fa8c17bc1d9a3 5028 libs optional
qcustomplot_2.0.1+dfsg1-2.debian.tar.xz
d735522440eed253699deae93f7ab2e4 10430 libs optional
qcustomplot_2.0.1+dfsg1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEu71F6oGKuG/2fnKF0+Fzg8+n/wYFAl7U2XgACgkQ0+Fzg8+n
/wYGHhAAilAyyewHXPyHXZMbntQ2Hdw24bqNLlWrTFwaucmv/s5Vu195Hlg/SGIw
jPy6IYBKSt/j/byw7CKPDsD+mcC0kugJfA04xbxxS8ozJkLthmqOWd8GaF+lZf48
bLmcKB9zWynKNLdaSUqEiwzCNa9jzHJsA3xvBnLz4vPiie4SzSHrJuXk+mrohDoI
RlwQVF+nv9ysbeBMmdfnxfa1wmO6NEXZw1ws7vzHPdYKA7ezrzAfIDjV3HV5QxVY
bMcMN7mEsO6Xi6gxzSTift25R7NKpltRmtoEnfkBzEkNDyUcG9xoRuReZoKiq/q0
yPFpA4cZCPjaccXXK3BGX8l3Ay0BmzrhtonUeEEavAYhMaTWt6s2b/fQjkZwTQqc
Z28U6A1T2DRyScYSugKoCZtzLAtNQkAy+qmlcBx4bRtpvNJGQ7ceYsOlTfCHgMtE
/pJJ/D3Xa0A2HakXSady+lp5omXtWRrAhXihaV4RuniBewRd09D53sOJpjhBkDzu
XajHRlegv6BshNGi1d1M8dlC2auvfDKxN7yWY0mR8Q2IV4WanPp1SjQ2HQko/Ch3
pMOZyU1vSHUU0GOr7koSRcyd/4o571ZnuZQsvB046IMkcfCS8iaO0zieRZhTpH+L
7ysuzsNbXqrrQK6WneHDklKjDXzqwBaU6dho9YYmx1QHqSDD5vM=
=7aGp
-----END PGP SIGNATURE-----
--- End Message ---
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers