File indexing completed on 2024-06-09 04:40:25
0001 /* 0002 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "textautocorrectionwidgets_export.h" 0010 #include <QComboBox> 0011 0012 namespace TextAutoCorrectionWidgets 0013 { 0014 /** 0015 * @brief The AutoCorrectionLanguage class 0016 * @author Laurent Montel <montel@kde.org> 0017 */ 0018 class TEXTAUTOCORRECTIONWIDGETS_EXPORT AutoCorrectionLanguage : public QComboBox 0019 { 0020 public: 0021 explicit AutoCorrectionLanguage(QWidget *parent); 0022 ~AutoCorrectionLanguage() override; 0023 0024 /** 0025 * @brief language 0026 * @return specified language 0027 */ 0028 [[nodiscard]] QString language() const; 0029 0030 /** 0031 * @brief setLanguage 0032 * @param language define specified language 0033 */ 0034 void setLanguage(const QString &language); 0035 }; 0036 }