File indexing completed on 2024-12-08 04:34:22
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 0011 #include "libruqolawidgets_private_export.h" 0012 class QLineEdit; 0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT MessageMaximumSizeWidget : public QWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit MessageMaximumSizeWidget(QWidget *parent = nullptr); 0018 ~MessageMaximumSizeWidget() override; 0019 0020 [[nodiscard]] QString description() const; 0021 0022 [[nodiscard]] QString fileName() const; 0023 Q_SIGNALS: 0024 void updateOkButton(bool enabled); 0025 0026 private: 0027 LIBRUQOLAWIDGETS_NO_EXPORT void slotTextChanged(); 0028 QLineEdit *const mFileName; 0029 QLineEdit *const mDescription; 0030 };