Messagelib

submittedformwarningwidget.cpp
1 /*
2  SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
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  setPosition(KMessageWidget::Header);
21  setWordWrap(true);
22  setText(i18n("Submit form is not allowed in mailer. Please open url in a browser."));
23 }
24 
25 SubmittedFormWarningWidget::~SubmittedFormWarningWidget() = default;
26 
27 void SubmittedFormWarningWidget::showWarning()
28 {
29  animatedShow();
30 }
31 
32 #include "moc_submittedformwarningwidget.cpp"
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.