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

@@ -86,11 +86,11 @@ QVariant TitleBlockCell::attribute(const QString &attribute) {
} else if (attribute == "logo") {
return(logo_reference);
} else if (attribute == "label") {
return(qVariantFromValue(label));
return(QVariant::fromValue(label));
} else if (attribute == "displaylabel") {
return(display_label);
} else if (attribute == "value") {
return(qVariantFromValue(value));
return(QVariant::fromValue(value));
} else if (attribute == "alignment") {
return(alignment);
} else if (attribute == "fontsize") {