diff --git a/interfaces/notificationsmodel.cpp b/interfaces/notificationsmodel.cpp index 7e6908d08..2237d1eda 100644 --- a/interfaces/notificationsmodel.cpp +++ b/interfaces/notificationsmodel.cpp @@ -195,7 +195,7 @@ QVariant NotificationsModel::data(const QModelIndex& index, int role) const case AppNameModelRole: return notification->appName(); case DbusInterfaceRole: - return qVariantFromValue(notification); + return QVariant::fromValue(notification); case DismissableModelRole: return notification->dismissable(); case RepliableModelRole: