Commit 26830d43 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix deprecation warnings


Replace trUtf8() by tr() and implement QAbstractItemModel::roleNames(),
fixing:

multimedia.cpp:76:5: note: in expansion of macro ‘Q_OBJECT’
multimedia.cpp:143:77: warning: ‘static QString QMultimediaDeclarativeModule::trUtf8(const char*, const char*, int)’ is deprecated [-Wdeprecated-declarations]
                 from multimedia.cpp:40:
....
qdeclarativecamerafocus.cpp:403:23: warning: ‘void QAbstractItemModel::setRoleNames(const QHash<int, QByteArray>&)’ is deprecated [-Wdeprecated-declarations]
     setRoleNames(roles);

Change-Id: I2648551a1b2774c45101ab1cad9e0ea3ab79ccbc
Reviewed-by: default avatarVaL Doroshchuk <valentyn.doroshchuk@qt.io>
Reviewed-by: default avatarSamuel Gaist <samuel.gaist@idiap.ch>
parent 1b7b6513
Branches
Tags
No related merge requests found
Showing with 21 additions and 18 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment