Replace qVariantFromValue with QVariant::fromValue
This commit is contained in:
parent
eb0e3fce03
commit
850bdf6cc9
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ QVariant NotificationsModel::data(const QModelIndex& index, int role) const
|
||||||
case AppNameModelRole:
|
case AppNameModelRole:
|
||||||
return notification->appName();
|
return notification->appName();
|
||||||
case DbusInterfaceRole:
|
case DbusInterfaceRole:
|
||||||
return qVariantFromValue<QObject*>(notification);
|
return QVariant::fromValue<QObject*>(notification);
|
||||||
case DismissableModelRole:
|
case DismissableModelRole:
|
||||||
return notification->dismissable();
|
return notification->dismissable();
|
||||||
case RepliableModelRole:
|
case RepliableModelRole:
|
||||||
|
|
Loading…
Reference in a new issue