The QSignalMapper class has been deprecated since Qt 5.10.
This PR replaces it by lambdas and does not change behavior.
The QSignalMapper class has been deprecated since Qt 5.10.
This PR replaces it by lambdas and does not change behavior.
The QSignalMapper class is obsolete since Qt 5.10.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
No conflicts as of last run.
QSignalMapper has actually been un-deprecated, see QSignalMapper deprecation and Un-deprecate QSignalMapper.
However Concept ACK assuming there's no change in behaviour and the new code is still compatible with Qt 5.5.1.
QSignalMapper has actually been un-deprecated, see QSignalMapper deprecation and Un-deprecate QSignalMapper.
I didn't know about that. Thank you.
From Un-deprecate QSignalMapper:
... Note that in most cases you can use lambdas for passing custom parameters to slots. This is less costly and will simplify the code.
FWIW, this PR is a part of my work on warnings raised during compiling on Bionic against Qt 5.13.
Concept ACK -- more readable and less code
Concept ACK.
Are the style changes really necessary? I'd prefer just dropping QSignalMapper.
The QSignalMapper class is obsolete since Qt 5.10.
Concept ACK
<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds for commit db67101c748c208cced8e9b76a66d57cd48fbf6e (master):
d478851e7a28ec35e15c9643dd56c05f... bitcoin-0.18.99-aarch64-linux-gnu-debug.tar.gz3a477ee6c779cf8cd7656ae7f3ea309c... bitcoin-0.18.99-aarch64-linux-gnu.tar.gz259ca560bb5f4f5c7f616db71804bc7b... bitcoin-0.18.99-arm-linux-gnueabihf-debug.tar.gze3efc850c959e0e3ac06eca194655c0a... bitcoin-0.18.99-arm-linux-gnueabihf.tar.gz74293f3c371a78ffbe170da7214e2791... bitcoin-0.18.99-i686-pc-linux-gnu-debug.tar.gz7179a86f62c17dbf09e642efe4ba414f... bitcoin-0.18.99-i686-pc-linux-gnu.tar.gz4d9cd6c7db02c98018bbeee934765cd7... bitcoin-0.18.99-osx-unsigned.dmg4554021a6a4bfdf96d1654ae2de39252... bitcoin-0.18.99-osx64.tar.gzd1904b848a2025010c970ff6a0e447ed... bitcoin-0.18.99-riscv64-linux-gnu-debug.tar.gz3d3a8d9b390b2aa542146a91447f7ccc... bitcoin-0.18.99-riscv64-linux-gnu.tar.gzb595ee9a50672305091f781062fb047e... bitcoin-0.18.99-win64-debug.zipb48bbfa1bcf872eecc3753e371805def... bitcoin-0.18.99-win64-setup-unsigned.exe09c85a0ed74425101cd51b7add45f2b6... bitcoin-0.18.99-win64.zip09666e66aa82209266adcf2b1a59024c... bitcoin-0.18.99-x86_64-linux-gnu-debug.tar.gzb68bdbb23c21808c2ffaab2796f3b6e1... bitcoin-0.18.99-x86_64-linux-gnu.tar.gz933a20c43ea03172abf177007a85ca80... bitcoin-0.18.99.tar.gza74628fcf375eec1d9857f156b5aba39... bitcoin-core-linux-0.19-res.ymldeb31983488c68b799335b9f0c63eafa... bitcoin-core-osx-0.19-res.yml22bdfe8a47a97df96f8f5b5ce6f1b8a0... bitcoin-core-win-0.19-res.yml4a615cb9b82ce3b347cf9b7e7daabd1f... linux-build.log2c03c234b50503ff42e6998701a4f969... osx-build.logdc26b870c8d6c273b77767070ce623bf... win-build.logGitian builds for commit e05543dbcf87fb9c057d9c652835d85c25a2cb3e (master and this pull):
069903d405579a1553c0f0bccccef0ed... bitcoin-0.18.99-aarch64-linux-gnu-debug.tar.gz0fb1fb67dc2584f2714109bcdd979b0c... bitcoin-0.18.99-aarch64-linux-gnu.tar.gz83c16acf223a4c7578d97ed1d9f78ccd... bitcoin-0.18.99-arm-linux-gnueabihf-debug.tar.gz11445eea3bc65c2ede24ec4af4d2482a... bitcoin-0.18.99-arm-linux-gnueabihf.tar.gza207e81c24fd24fc625c088630e70965... bitcoin-0.18.99-i686-pc-linux-gnu-debug.tar.gzb74d8e39f84cc845e3f4ba941c957b9c... bitcoin-0.18.99-i686-pc-linux-gnu.tar.gzbb5d0d32e0dc16d0571b2e3c71e1a815... bitcoin-0.18.99-osx-unsigned.dmg51bc043e564148f9755c116e6ae82cee... bitcoin-0.18.99-osx64.tar.gz80db6e04a21ec8c8d674e417cd3b7b59... bitcoin-0.18.99-riscv64-linux-gnu-debug.tar.gza320e6375c2ee320aab200d0d66cea06... bitcoin-0.18.99-riscv64-linux-gnu.tar.gzc0f24ae3e91f31d696e8b92215b05d7d... bitcoin-0.18.99-win64-debug.zip29f28608bba904edb7ff2a1f0d5e5644... bitcoin-0.18.99-win64-setup-unsigned.exe12d5a2e4cf35e58cbe82f0d062082557... bitcoin-0.18.99-win64.zip2f40ff673504fb75faf1f36f30590490... bitcoin-0.18.99-x86_64-linux-gnu-debug.tar.gzd67f252169c97d06e97223a2bd28ddf7... bitcoin-0.18.99-x86_64-linux-gnu.tar.gzc07eaadfc137e885bf7f8201de5edf4e... bitcoin-0.18.99.tar.gzcefd8cd326d0668b1d2000accc5be5d8... bitcoin-core-linux-0.19-res.ymlfc14ae0291d99dafbfc5e501041edda0... bitcoin-core-linux-0.19-res.yml.diff2d5f59928eae6b8d4e46452769f7aceb... bitcoin-core-osx-0.19-res.yml3e18100ba126538508d9197160e4fe08... bitcoin-core-osx-0.19-res.yml.diff7cc151b8d5e0753231d178ed16ca6245... bitcoin-core-win-0.19-res.yml59bd20156331202894e7ffae69ded13b... bitcoin-core-win-0.19-res.yml.diff0e23c2f7b3623fe4ce59d6cacdb337a9... linux-build.log154a938997f63eb30f2d393ae35454ae... linux-build.log.diff9b671eb15f201b2852cb8fea1d2023f4... osx-build.log60ec8f503b22ff53cc3dbd7cec576a29... osx-build.log.diff64fe4bbda98332debabfea5ce10e1d78... win-build.log5fcb56d02f5b07e19018f039e1b87ae7... win-build.log.diffutACK 091213403922e970b38cc3a98c11074e02ddba14
Post merge ACK. This totally gets rid of the flood of warnings on macOs with QT 5.13 from homebrew. It's also shorter and more readable. Tested that external explorer links still work, as well as banning peers.
Building with depends (QT 5.9.7) also works, though this still throws trillions of (unrelated) warnings.