Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13
-
None
-
a3ffef76acdd4ea4b81bde481948ed4b953289af (qt/qtconnectivity/dev)
Description
/home/tjmaciei/src/qt/qt5/qtconnectivity/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp: In constructor ‘QDeclarativeBluetoothDiscoveryModel::QDeclarativeBluetoothDiscoveryModel(QObject*)’: /home/tjmaciei/src/qt/qt5/qtconnectivity/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp:175:27: warning: ‘void QAbstractItemModel::setRoleNames(const QHash<int, QByteArray>&)’ is deprecated [-Wdeprecated-declarations] setRoleNames(roleNames); ^ In file included from /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtCore/qabstractitemmodel.h:1, from /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtCore/QAbstractListModel:1, from /home/tjmaciei/src/qt/qt5/qtconnectivity/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h:54, from /home/tjmaciei/src/qt/qt5/qtconnectivity/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp:41: /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtCore/../../../../../../src/qt/qt5/qtbase/src/corelib/itemmodels/qabstractitemmodel.h:354:24: note: declared here QT_DEPRECATED void setRoleNames(const QHash<int,QByteArray> &theRoleNames) ^~~~~~~~~~~~
The code that uses the deprecated function predates the deprecation (was old QtMobility code). But it needs to be fixed now.
Attachments
For Gerrit Dashboard: QTBUG-73717 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
252730,4 | QDeclarativeBluetoothDiscoveryModel: Fix warnings | 5.13 | qt/qtconnectivity | Status: MERGED | +2 | 0 |