Modules: accept 'viewmodule' as alias of 'view', improve logging on error.
This commit is contained in:
parent
47e95b32a9
commit
e3008657c4
@ -76,7 +76,7 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
<< instanceId;
|
||||
return nullptr;
|
||||
}
|
||||
if ( typeString == "view" )
|
||||
if ( ( typeString == "view" ) || ( typeString == "viewmodule" ) )
|
||||
{
|
||||
if ( intfString == "qtplugin" )
|
||||
{
|
||||
@ -88,6 +88,8 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
m = new PythonQtViewModule();
|
||||
}
|
||||
#endif
|
||||
else
|
||||
cLog() << "Bad interface" << intfString << "for module type" << typeString;
|
||||
}
|
||||
else if ( typeString == "job" )
|
||||
{
|
||||
@ -105,7 +107,12 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
m = new PythonJobModule();
|
||||
}
|
||||
#endif
|
||||
else
|
||||
cLog() << "Bad interface" << intfString << "for module type" << typeString;
|
||||
}
|
||||
else
|
||||
cLog() << "Bad module type" << typeString;
|
||||
|
||||
if ( !m )
|
||||
{
|
||||
cLog() << Q_FUNC_INFO << "bad module type or interface string"
|
||||
|
Loading…
Reference in New Issue
Block a user