Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73717

Bluetooth QML code uses item views API deprecated in Qt 5.0

    XMLWordPrintable

    Details

    • Commits:
      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

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes