File indexing completed on 2024-12-01 04:36:38

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 "config-ruqola.h"
0010 #include "libruqolawidgets_private_export.h"
0011 #include <QWidget>
0012 #if HAVE_TEXT_AUTOCORRECTION_WIDGETS
0013 namespace TextAutoCorrectionWidgets
0014 {
0015 class AutoCorrectionWidget;
0016 }
0017 #endif
0018 
0019 class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureAutoCorrectionWidget : public QWidget
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit ConfigureAutoCorrectionWidget(QWidget *parent = nullptr);
0024     ~ConfigureAutoCorrectionWidget() override;
0025 
0026     void save();
0027     void load();
0028 
0029 private:
0030 #if HAVE_TEXT_AUTOCORRECTION_WIDGETS
0031     TextAutoCorrectionWidgets::AutoCorrectionWidget *const mAutoCorrectionWidget;
0032 #endif
0033 };