importimapsettingnofoundpage.cpp 1.48 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
/*
Laurent Montel's avatar
Laurent Montel committed
2
   Copyright (C) 2016-2020 Laurent Montel <montel@kde.org>
Laurent Montel's avatar
Laurent Montel committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; see the file COPYING.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#include "importimapsettingnofoundpage.h"
21 22 23
#include <QVBoxLayout>
#include <QLabel>
#include <KLocalizedString>
Laurent Montel's avatar
Laurent Montel committed
24 25 26 27

ImportImapSettingNoFoundPage::ImportImapSettingNoFoundPage(QWidget *parent)
    : QWidget(parent)
{
Laurent Montel's avatar
Laurent Montel committed
28
    auto *mainLayout = new QVBoxLayout(this);
Laurent Montel's avatar
Laurent Montel committed
29 30
    mainLayout->setObjectName(QStringLiteral("mainlayout"));

Laurent Montel's avatar
Laurent Montel committed
31
    QLabel *lab = new QLabel(i18n("No settings found to import."));
Laurent Montel's avatar
Laurent Montel committed
32 33 34 35 36
    QFont font = lab->font();
    font.setBold(true);
    font.setPointSizeF(font.pointSizeF() * 1.5);
    lab->setFont(font);
    lab->setAlignment(Qt::AlignCenter);
37 38
    lab->setObjectName(QStringLiteral("label"));
    mainLayout->addWidget(lab);
Laurent Montel's avatar
Laurent Montel committed
39 40 41 42 43
}

ImportImapSettingNoFoundPage::~ImportImapSettingNoFoundPage()
{
}