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
12using namespace WebEngineViewer;
13
14SubmittedFormWarningWidget::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
25SubmittedFormWarningWidget::~SubmittedFormWarningWidget() = default;
26
27void SubmittedFormWarningWidget::showWarning()
28{
30}
31
32#include "moc_submittedformwarningwidget.cpp"
void animatedShow()
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 Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.