Pimcommon

lineeditwithautocorrection.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pimcommon_export.h"
10
11#include <PimCommon/SpellCheckLineEdit>
12namespace TextAutoCorrectionCore
13{
14class AutoCorrection;
15}
16
17namespace PimCommon
18{
19class LineEditWithAutoCorrectionPrivate;
20/**
21 * @brief The LineEditWithAutoCorrection class
22 * @author Laurent Montel <montel@kde.org>
23 */
25{
26 Q_OBJECT
27public:
28 explicit LineEditWithAutoCorrection(QWidget *parent, const QString &configFile);
30
31 [[nodiscard]] TextAutoCorrectionCore::AutoCorrection *autocorrection() const;
32 void setAutocorrection(TextAutoCorrectionCore::AutoCorrection *autocorrect);
33 void setAutocorrectionLanguage(const QString &language);
34
35protected:
36 void keyPressEvent(QKeyEvent *e) override;
37
38private:
39 std::unique_ptr<LineEditWithAutoCorrectionPrivate> const d;
40};
41}
The LineEditWithAutoCorrection class.
The SpellCheckLineEdit class.
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.