Skip to content

Commit

Permalink
fixed missing QVariant::typeid() for Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jan 18, 2022
1 parent 0442807 commit 4c2351e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/orm/support/configurationoptionsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ ConfigurationOptionsParser::validateConfigOptions(const QVariant &options) const
QVariantHash
ConfigurationOptionsParser::prepareConfigOptions(const QVariant &options) const
{
// CUR verify, I have qt5/6 macros across whole app for this silverqx
// Input is already validated, so I can be sure that options key is QVariantHash
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if (options.typeId() != QMetaType::QString)
#else
if (options.userType() != QMetaType::QString)
#endif
return options.value<QVariantHash>();

// Convert to the QVariantHash
Expand Down

0 comments on commit 4c2351e

Please sign in to comment.