[Clang][Windows] Remove workarounds

This commit is contained in:
Mat Sutcliffe
2021-10-05 15:47:44 +01:00
parent fb43405277
commit 916448ef6a
19 changed files with 89 additions and 229 deletions

View File

@@ -522,6 +522,28 @@ namespace BlackMisc
return CIcon(toIcon()).toPixmap();
}
void CVariant::registerMetadata()
{
Private::MetaTypeHelper<CVariant>::maybeRegisterMetaType();
}
int CVariant::getMetaTypeId() const
{
return Private::MetaTypeHelper<CVariant>::maybeGetMetaTypeId();
}
QString CVariant::getClassName() const
{
return QMetaType::typeName(getMetaTypeId());
}
bool CVariant::isA(int metaTypeId) const
{
if (metaTypeId == QMetaType::UnknownType) { return false; }
if (metaTypeId == getMetaTypeId()) { return true; }
return false;
}
bool CVariant::matches(const CVariant &value) const
{
if (! isValid()) { return false; }