Replace qVariantFromValue with QVariant::fromValue

This commit is contained in:
Nicolas Fella 2019-05-09 23:30:03 +02:00
parent eb0e3fce03
commit 850bdf6cc9

View file

@ -195,7 +195,7 @@ QVariant NotificationsModel::data(const QModelIndex& index, int role) const
case AppNameModelRole:
return notification->appName();
case DbusInterfaceRole:
return qVariantFromValue<QObject*>(notification);
return QVariant::fromValue<QObject*>(notification);
case DismissableModelRole:
return notification->dismissable();
case RepliableModelRole: