To help preparing for the transition to Qt 6, numerous classes and member functions that will be removed from Qt 6.0 have been marked as deprecated in the Qt 5.15 release.
Fixes #36
936+#else
937+ return label->pixmap() != nullptr;
938+#endif
939+}
940+
941+QImage GetImage(const QLabel* label)
nit: Could pass by reference?
0QImage GetImage(const QLabel& label)
btw, I am getting a ton of warnings like this one:
0 CXX qt/libbitcoinqt_a-bantablemodel.o
1In file included from qt/bantablemodel.cpp:5:
2In file included from ./qt/bantablemodel.h:12:
3In file included from /usr/include/qt5/QtCore/QAbstractTableModel:1:
4/usr/include/qt5/QtCore/qabstractitemmodel.h:170:5: warning: 'metaObject' overrides a member function but is not marked 'override' [-Wsuggest-override]
5 Q_OBJECT
6 ^
7/usr/include/qt5/QtCore/qobjectdefs.h:175:32: note: expanded from macro 'Q_OBJECT'
8 virtual const QMetaObject *metaObject() const; \
9 ^
10/usr/include/qt5/QtCore/qobject.h:129:5: note: overridden virtual function is here
11 Q_OBJECT
12 ^
13/usr/include/qt5/QtCore/qobjectdefs.h:175:32: note: expanded from macro 'Q_OBJECT'
14 virtual const QMetaObject *metaObject() const; \
15 ^
Compiling on macOS 11.0.1 Big Sur (20B29) + Qt 5.15.1 gives the following warnings now:
-W#pragma-messages
from boost 1.74.00/usr/local/include/boost/function_output_iterator.hpp:14:1: warning: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead. [-W#pragma-messages]
1BOOST_HEADER_DEPRECATED("<boost/iterator/function_output_iterator.hpp>")
0warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
0qt/guiutil.cpp:70:37: warning: 'SystemLocaleShortDate' is deprecated: Use QLocale [-Wdeprecated-declarations]
1 return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm");
2 ^
3/usr/local/Cellar/qt/5.15.1/lib/QtCore.framework/Headers/qnamespace.h:1280:31: note: 'SystemLocaleShortDate' has been explicitly marked deprecated here
4 SystemLocaleShortDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"),
5 ^
6/usr/local/Cellar/qt/5.15.1/lib/QtCore.framework/Headers/qcompilerdetection.h:1161:45: note: expanded from macro 'Q_DECL_ENUMERATOR_DEPRECATED_X'
7# define Q_DECL_ENUMERATOR_DEPRECATED_X(x) Q_DECL_DEPRECATED_X(x)
8 ^
9/usr/local/Cellar/qt/5.15.1/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
10# define Q_DECL_DEPRECATED_X(text) attribute ((__deprecated__(text)))
11 ^
121 warning generated.
Not seening -Wsuggest-override
warnings at all :man_shrugging:
Oh the override warnings happen with clang on linux. E.g fedora or debian:
https://cirrus-ci.com/task/6217749342978048?command=make#L10798