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:
@@ -45,7 +45,7 @@ PluginErrorOverview::PluginErrorOverview(QWidget *parent) :
|
||||
// only show errors on startup if plugin is enabled.
|
||||
if (spec->hasError() && spec->isEffectivelyEnabled()) {
|
||||
QListWidgetItem *item = new QListWidgetItem(spec->name());
|
||||
item->setData(Qt::UserRole, qVariantFromValue(spec));
|
||||
item->setData(Qt::UserRole, QVariant::fromValue(spec));
|
||||
m_ui->pluginList->addItem(item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user