File indexing completed on 2024-12-29 04:54:49
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "sievescriptdebuggerwarning.h" 0008 0009 using namespace KSieveUi; 0010 0011 SieveScriptDebuggerWarning::SieveScriptDebuggerWarning(QWidget *parent) 0012 : KMessageWidget(parent) 0013 { 0014 setCloseButtonVisible(true); 0015 hide(); 0016 } 0017 0018 SieveScriptDebuggerWarning::~SieveScriptDebuggerWarning() = default; 0019 0020 void SieveScriptDebuggerWarning::setErrorMessage(const QString &msg) 0021 { 0022 setMessageType(KMessageWidget::Error); 0023 setText(msg); 0024 animatedShow(); 0025 } 0026 0027 void SieveScriptDebuggerWarning::setWarningMessage(const QString &msg) 0028 { 0029 setMessageType(KMessageWidget::Warning); 0030 setText(msg); 0031 animatedShow(); 0032 } 0033 0034 #include "moc_sievescriptdebuggerwarning.cpp"