Make sure that unknown types use the handler for unknown types.
This fixes an assert in the QVariant checkDataStream unit test when it no longer links to QtGui. Change-Id: Ib45139cf790f3ac6ee80e1c59f50d08d0b51ffa4 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>bb10
parent
80cd5d2017
commit
f9db44ad15
|
|
@ -64,9 +64,9 @@ static inline int moduleForType(const uint typeId)
|
|||
{
|
||||
if (typeId <= QMetaType::LastCoreType)
|
||||
return Core;
|
||||
if (typeId <= QMetaType::LastGuiType)
|
||||
if (typeId >= QMetaType::FirstGuiType && typeId <= QMetaType::LastGuiType)
|
||||
return Gui;
|
||||
if (typeId <= QMetaType::LastWidgetsType)
|
||||
if (typeId >= QMetaType::FirstWidgetsType && typeId <= QMetaType::LastWidgetsType)
|
||||
return Widgets;
|
||||
return Unknown;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue