KTextAddons

languagetoolcombobox.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textgrammarcheck_export.h"
10#include <QComboBox>
11namespace TextGrammarCheck
12{
13class LanguageInfo;
14class TEXTGRAMMARCHECK_EXPORT LanguageToolComboBox : public QComboBox
15{
16 Q_OBJECT
17public:
18 explicit LanguageToolComboBox(QWidget *parent = nullptr);
19 ~LanguageToolComboBox() override;
20
21 void setLanguage(const QString &str);
22 [[nodiscard]] QString language() const;
23
24 void fillComboBox(const QVector<LanguageInfo> &info);
25
26private:
27 TEXTGRAMMARCHECK_NO_EXPORT void fillComboBox();
28 Q_DISABLE_COPY(LanguageToolComboBox)
29};
30}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:28 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.