File indexing completed on 2024-12-22 05:01:10

0001 /*
0002   SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only
0005 */
0006 
0007 #include "identityinvalidfolder.h"
0008 
0009 using namespace KMail;
0010 
0011 IdentityInvalidFolder::IdentityInvalidFolder(QWidget *parent)
0012     : KMessageWidget(parent)
0013 {
0014     setMessageType(KMessageWidget::Warning);
0015     setCloseButtonVisible(false);
0016     hide();
0017 }
0018 
0019 IdentityInvalidFolder::~IdentityInvalidFolder() = default;
0020 
0021 void IdentityInvalidFolder::setErrorMessage(const QString &msg)
0022 {
0023     animatedShow();
0024     setText(msg);
0025 }
0026 
0027 #include "moc_identityinvalidfolder.cpp"