configmodule.cpp 719 Bytes
Newer Older
1
/*
2 3 4
    SPDX-FileCopyrightText: 2007 Volker Krause <vkrause@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
5 6 7
*/

#include "configmodule.h"
Laurent Montel's avatar
Laurent Montel committed
8
#include "widgets/transportmanagementwidget.h"
9

10 11
#include <KPluginFactory>
#include <KPluginLoader>
12

Laurent Montel's avatar
Laurent Montel committed
13 14
#include <QVBoxLayout>

15 16
using namespace MailTransport;

Laurent Montel's avatar
Laurent Montel committed
17 18
K_PLUGIN_FACTORY(MailTransportConfigFactory, registerPlugin<ConfigModule>();
                 )
19

Laurent Montel's avatar
Laurent Montel committed
20 21
ConfigModule::ConfigModule(QWidget *parent, const QVariantList &args)
    : KCModule(parent, args)
22
{
Laurent Montel's avatar
Laurent Montel committed
23
    setButtons(NoAdditionalButton);
Laurent Montel's avatar
Laurent Montel committed
24
    auto *l = new QVBoxLayout(this);
25
    l->setContentsMargins(0, 0, 0, 0);
Laurent Montel's avatar
Laurent Montel committed
26
    auto *tmw = new TransportManagementWidget(this);
Laurent Montel's avatar
Laurent Montel committed
27
    l->addWidget(tmw);
28
}
Laurent Montel's avatar
Laurent Montel committed
29

Laurent Montel's avatar
Laurent Montel committed
30
#include "configmodule.moc"