mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-05 18:40:02 -06:00
wrapped registerQMetaTypesForQt5() in #if
This commit is contained in:
@@ -397,7 +397,9 @@ namespace Query
|
||||
static void checkInstance();
|
||||
|
||||
/*! Call QMetaType's register functions needed by the Qt 5. */
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
static void registerQMetaTypesForQt5();
|
||||
#endif
|
||||
|
||||
/*! Database configuration. */
|
||||
Configuration m_configuration {};
|
||||
|
||||
@@ -960,6 +960,7 @@ void DatabaseManager::checkInstance()
|
||||
"Only one instance of DatabaseManager is allowed per process.");
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
void DatabaseManager::registerQMetaTypesForQt5()
|
||||
{
|
||||
if (!QMetaType::hasRegisteredComparators<QtTimeZoneConfig>())
|
||||
@@ -982,6 +983,7 @@ void DatabaseManager::registerQMetaTypesForQt5()
|
||||
QMetaType::registerEqualsComparator<QVector<QVector<AttributeItem>>>();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace Orm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user