mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
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:
committed by
Laurent Trinques
parent
86a4701d2b
commit
70f0541e06
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user