|
|
@ -44,7 +44,10 @@ class CalamaresPluginFactory : public KPluginFactory
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit CalamaresPluginFactory() : KPluginFactory() {}
|
|
|
|
explicit CalamaresPluginFactory()
|
|
|
|
|
|
|
|
: KPluginFactory()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
~CalamaresPluginFactory() override;
|
|
|
|
~CalamaresPluginFactory() override;
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Create an object from the factory.
|
|
|
|
/** @brief Create an object from the factory.
|
|
|
@ -58,7 +61,8 @@ public:
|
|
|
|
Q_UNUSED( parentWidget );
|
|
|
|
Q_UNUSED( parentWidget );
|
|
|
|
Q_UNUSED( args );
|
|
|
|
Q_UNUSED( args );
|
|
|
|
ParentType* p = nullptr;
|
|
|
|
ParentType* p = nullptr;
|
|
|
|
if (parent) {
|
|
|
|
if ( parent )
|
|
|
|
|
|
|
|
{
|
|
|
|
p = qobject_cast< ParentType* >( parent );
|
|
|
|
p = qobject_cast< ParentType* >( parent );
|
|
|
|
Q_ASSERT( p );
|
|
|
|
Q_ASSERT( p );
|
|
|
|
}
|
|
|
|
}
|
|
|
|