forked from qt-creator/qt-creator
Replace uses of qVariantFromValue with QVariant::fromValue
Deprecated in Qt 5.14, alternative has been around since Qt 4 at least. Change-Id: I4e3a53c289088368609e0d0ce2405a832d311308 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -260,7 +260,7 @@ void NavigationWidget::setFactories(const QList<INavigationWidgetFactory *> &fac
|
||||
}
|
||||
|
||||
QStandardItem *newRow = new QStandardItem(factory->displayName());
|
||||
newRow->setData(qVariantFromValue(factory), FactoryObjectRole);
|
||||
newRow->setData(QVariant::fromValue(factory), FactoryObjectRole);
|
||||
newRow->setData(QVariant::fromValue(factory->id()), FactoryIdRole);
|
||||
newRow->setData(factory->priority(), FactoryPriorityRole);
|
||||
d->m_factoryModel->appendRow(newRow);
|
||||
|
||||
Reference in New Issue
Block a user