fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -437,7 +437,7 @@ private:
|
||||
for (WidgetType *widget : children)
|
||||
{
|
||||
QVariant lastState = widget->property("lastReadOnlyState");
|
||||
if (lastState.isValid() && !lastState.isNull() && lastState.canConvert(QMetaType::Bool))
|
||||
if (lastState.isValid() && !lastState.isNull() && lastState.canConvert<bool>())
|
||||
widget->setReadOnly(lastState.toBool());
|
||||
}
|
||||
}
|
||||
@@ -449,7 +449,7 @@ private:
|
||||
for (WidgetType *widget : children)
|
||||
{
|
||||
QVariant lastState = widget->property("lastEnabledState");
|
||||
if (lastState.isValid() && !lastState.isNull() && lastState.canConvert(QMetaType::Bool))
|
||||
if (lastState.isValid() && !lastState.isNull() && lastState.canConvert<bool>())
|
||||
widget->setEnabled(lastState.toBool());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user