Remove PythonQt support -- C++ bits
This commit is contained in:
parent
ca4dbabf70
commit
60cc8696e3
@ -40,7 +40,6 @@ interfaceNames()
|
|||||||
{ QStringLiteral("process"), Interface::Process },
|
{ QStringLiteral("process"), Interface::Process },
|
||||||
{ QStringLiteral("qtplugin"), Interface::QtPlugin },
|
{ QStringLiteral("qtplugin"), Interface::QtPlugin },
|
||||||
{ QStringLiteral("python"), Interface::Python },
|
{ QStringLiteral("python"), Interface::Python },
|
||||||
{ QStringLiteral("pythonqt"), Interface::PythonQt }
|
|
||||||
};
|
};
|
||||||
// *INDENT-ON*
|
// *INDENT-ON*
|
||||||
// clang-format on
|
// clang-format on
|
||||||
@ -98,7 +97,6 @@ Descriptor::fromDescriptorData( const QVariantMap& moduleDesc )
|
|||||||
consumedKeys << "load";
|
consumedKeys << "load";
|
||||||
break;
|
break;
|
||||||
case Interface::Python:
|
case Interface::Python:
|
||||||
case Interface::PythonQt:
|
|
||||||
d.m_script = CalamaresUtils::getString( moduleDesc, "script" );
|
d.m_script = CalamaresUtils::getString( moduleDesc, "script" );
|
||||||
if ( d.m_script.isEmpty() )
|
if ( d.m_script.isEmpty() )
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,6 @@ enum class Interface
|
|||||||
QtPlugin, // Jobs or Views
|
QtPlugin, // Jobs or Views
|
||||||
Python, // Jobs only
|
Python, // Jobs only
|
||||||
Process, // Deprecated interface
|
Process, // Deprecated interface
|
||||||
PythonQt // Views only, available as enum even if PythonQt isn't used
|
|
||||||
};
|
};
|
||||||
const NamedEnumTable< Interface >& interfaceNames();
|
const NamedEnumTable< Interface >& interfaceNames();
|
||||||
|
|
||||||
@ -111,7 +110,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
QString script() const
|
QString script() const
|
||||||
{
|
{
|
||||||
return ( m_interface == Interface::Python || m_interface == Interface::PythonQt ) ? m_script : QString();
|
return m_interface == Interface::Python ? m_script : QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -55,10 +55,6 @@ moduleFromDescriptor( const Calamares::ModuleSystem::Descriptor& moduleDescripto
|
|||||||
{
|
{
|
||||||
m.reset( new ViewModule() );
|
m.reset( new ViewModule() );
|
||||||
}
|
}
|
||||||
else if ( moduleDescriptor.interface() == Interface::PythonQt )
|
|
||||||
{
|
|
||||||
cError() << "PythonQt view modules are not supported in this version of Calamares.";
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cError() << "Bad interface"
|
cError() << "Bad interface"
|
||||||
|
Loading…
Reference in New Issue
Block a user