mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +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
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user