fix deprecated warning qVariantFromValue

This function is obsolete.
Note:
This function was provided as a workaround for MSVC 6
which did not support member template functions.
It is advised to use the other form in new code.

This function is equivalent to QVariant::fromValue(value).
This commit is contained in:
Simon De Backer
2020-05-28 18:07:52 +02:00
committed by Laurent Trinques
parent 86a4701d2b
commit 70f0541e06
3 changed files with 7 additions and 7 deletions

View File

@@ -389,7 +389,7 @@ void TitleBlockTemplateCellWidget::editTranslatableValue(NamesList &names, const
nlw_->setClipboardValue(QETInformation::titleblockTranslatedKeyHashVar());
if(dialog_.exec() == QDialog::Accepted) {
emitModification(attribute, qVariantFromValue(nlw_->names()));
emitModification(attribute, QVariant::fromValue(nlw_->names()));
}
}