KTextAddons

autocorrectionlanguage.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textautocorrectionwidgets_export.h"
10#include <QComboBox>
11
12namespace TextAutoCorrectionWidgets
13{
14class AutoCorrectionLanguageModel;
15/**
16 * @brief The AutoCorrectionLanguage class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class TEXTAUTOCORRECTIONWIDGETS_EXPORT AutoCorrectionLanguage : public QComboBox
20{
21public:
22 explicit AutoCorrectionLanguage(QWidget *parent);
23 ~AutoCorrectionLanguage() override;
24
25 [[nodiscard]] QString language(int index) const;
26
27 /**
28 * @brief language
29 * @return specified language
30 */
31 [[nodiscard]] QString language() const;
32
33 /**
34 * @brief setLanguage
35 * @param language define specified language
36 */
37 void setLanguage(const QString &language);
38
39private:
40 AutoCorrectionLanguageModel *const mAutoCorrectionLanguageModel;
41};
42}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.