Libksieve

sievescriptdebuggerwarning.cpp
1 /*
2  SPDX-FileCopyrightText: 2015-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "sievescriptdebuggerwarning.h"
8 
9 using namespace KSieveUi;
10 
11 SieveScriptDebuggerWarning::SieveScriptDebuggerWarning(QWidget *parent)
12  : KMessageWidget(parent)
13 {
14  setCloseButtonVisible(true);
15  hide();
16 }
17 
18 SieveScriptDebuggerWarning::~SieveScriptDebuggerWarning()
19 {
20 }
21 
22 void SieveScriptDebuggerWarning::setErrorMessage(const QString &msg)
23 {
24  setMessageType(KMessageWidget::Error);
25  setText(msg);
26  animatedShow();
27 }
28 
29 void SieveScriptDebuggerWarning::setWarningMessage(const QString &msg)
30 {
31  setMessageType(KMessageWidget::Warning);
32  setText(msg);
33  animatedShow();
34 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:09:37 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.