File indexing completed on 2024-06-09 05:18:13
0001 /* 0002 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "mailcommon_private_export.h" 0010 #include <QWidget> 0011 0012 class QLineEdit; 0013 0014 namespace MailCommon 0015 { 0016 class MAILCOMMON_TESTS_EXPORT SnippetAttachmentWidget : public QWidget 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit SnippetAttachmentWidget(QWidget *parent = nullptr); 0021 ~SnippetAttachmentWidget() override; 0022 void setText(const QString &str); 0023 [[nodiscard]] QString text() const; 0024 void clear(); 0025 0026 Q_SIGNALS: 0027 void wasChanged(); 0028 0029 private: 0030 void slotSelectAttachment(); 0031 QLineEdit *const mLineEdit; 0032 }; 0033 }