/*
  SPDX-FileCopyrightText: 2016-2025 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: LGPL-2.0-or-later

*/

#include "submittedformwarningwidget.h"
using namespace Qt::Literals::StringLiterals;

#include <KLocalizedString>

using namespace WebEngineViewer;

SubmittedFormWarningWidget::SubmittedFormWarningWidget(QWidget *parent)
    : KMessageWidget(parent)
{
    setVisible(false);
    setCloseButtonVisible(true);
    setMessageType(Warning);
    setPosition(KMessageWidget::Header);
    setWordWrap(true);
    setText(i18n("Submit form is not allowed in mailer. Please open url in a browser."));
}

SubmittedFormWarningWidget::~SubmittedFormWarningWidget() = default;

void SubmittedFormWarningWidget::showWarning()
{
    animatedShow();
}

#include "moc_submittedformwarningwidget.cpp"
