Commit 5319de27 authored by Laurent Montel's avatar Laurent Montel 😁

Not necessary to define parentwidget in abstractimporter it's already defined...

Not necessary to define parentwidget in abstractimporter it's already defined in AbstractDisplayInfo
parent 4348c7cd
......@@ -208,7 +208,6 @@ void ImportWizard::initializeImportModule()
const QVector<LibImportWizard::AbstractImporter *> lstPlugins = ImportMailPluginManager::self()->pluginsList();
for (LibImportWizard::AbstractImporter *abstractPlugin : qAsConst(lstPlugins)) {
if (abstractPlugin->foundMailer()) {
abstractPlugin->setParentWidget(this);
abstractPlugin->setAbstractDisplayInfo(mAbstractDisplayInfo);
mlistImport.insert(abstractPlugin->name(), abstractPlugin);
}
......
......@@ -129,16 +129,6 @@ void AbstractImporter::addImportCalendarInfo(const QString &log) const
}
}
void AbstractImporter::setParentWidget(QWidget *parent)
{
mParentWidget = parent;
}
QWidget *AbstractImporter::parentWidget() const
{
return mParentWidget;
}
void AbstractImporter::setAbstractDisplayInfo(AbstractDisplayInfo *info)
{
mAbstractDisplayInfo = info;
......
......@@ -72,9 +72,6 @@ public:
virtual bool importAddressBook();
virtual bool importCalendar();
void setParentWidget(QWidget *parent);
QWidget *parentWidget() const;
void setAbstractDisplayInfo(AbstractDisplayInfo *info);
protected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment