Messagelib

submittedformwarningwidget.cpp
1 /*
2  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 
6 */
7 
8 #include "submittedformwarningwidget.h"
9 
10 #include <KLocalizedString>
11 
12 using namespace WebEngineViewer;
13 
14 SubmittedFormWarningWidget::SubmittedFormWarningWidget(QWidget *parent)
15  : KMessageWidget(parent)
16 {
17  setVisible(false);
18  setCloseButtonVisible(true);
19  setMessageType(Warning);
20  setWordWrap(true);
21  setText(i18n("Submit form is not allowed in mailer. Please open url in a browser."));
22 }
23 
24 SubmittedFormWarningWidget::~SubmittedFormWarningWidget() = default;
25 
26 void SubmittedFormWarningWidget::showWarning()
27 {
28  animatedShow();
29 }
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.