Don't use deprecated QVariant::type() in Qt 6
This commit is contained in:
parent
0a7d05256c
commit
e4720ea587
|
@ -312,7 +312,13 @@ void DbQueryWidget::showResults()
|
|||
if (value.isNull()) {
|
||||
continue;
|
||||
}
|
||||
if (value.type() == QVariant::String && value.toString().isEmpty()) {
|
||||
if (
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
value.metaType() == QMetaType::fromType<QString>()
|
||||
#else
|
||||
value.type() == QVariant::String
|
||||
#endif
|
||||
&& value.toString().isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
columnHasValues = true;
|
||||
|
|
Loading…
Reference in New Issue