File indexing completed on 2025-02-16 04:49:25

0001 /*
0002     SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "markdownlib_private_export.h"
0010 #include <QWidget>
0011 class QLineEdit;
0012 class LIBKMAILMARKDOWNPRIVATE_TESTS_EXPORT MarkdownCreateLinkWidget : public QWidget
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit MarkdownCreateLinkWidget(QWidget *parent = nullptr);
0017     ~MarkdownCreateLinkWidget() override;
0018     [[nodiscard]] QString linkStr() const;
0019 
0020 Q_SIGNALS:
0021     void enabledOkButton(bool enabled);
0022 
0023 private:
0024     void slotEnableButton();
0025     QLineEdit *const mTitle;
0026     QLineEdit *const mLink;
0027 };