Pimcommon

spellchecklineedit.h
1 /*
2  * Copyright (c) 2011-2020 Laurent Montel <[email protected]>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * In addition, as a special exception, the copyright holders give
19  * permission to link the code of this program with any edition of
20  * the Qt library by Trolltech AS, Norway (or with modified versions
21  * of Qt that use the same license as Qt), and distribute linked
22  * combinations including the two. You must obey the GNU General
23  * Public License in all respects for all of the code used other than
24  * Qt. If you modify this file, you may extend this exception to
25  * your version of the file, but you are not obligated to do so. If
26  * you do not wish to do so, delete this exception statement from
27  * your version.
28  */
29 
30 #ifndef SpellCheckLineEdit_H
31 #define SpellCheckLineEdit_H
32 #include "pimcommon_export.h"
33 #include <KPIMTextEdit/RichTextEditor>
34 
35 class QMimeData;
36 namespace PimCommon {
41 class PIMCOMMON_EXPORT SpellCheckLineEdit : public KPIMTextEdit::RichTextEditor
42 {
43  Q_OBJECT
44 
45 public:
51  explicit SpellCheckLineEdit(QWidget *parent, const QString &configFile);
55  ~SpellCheckLineEdit() override;
56 
57 protected:
58  QSize sizeHint() const override;
59  QSize minimumSizeHint() const override;
60  void keyPressEvent(QKeyEvent *) override;
61  void insertFromMimeData(const QMimeData *source) override;
62 
63 Q_SIGNALS:
68  void focusUp();
69 
70  void focusDown();
71 };
72 }
73 #endif /* SpellCheckLineEdit_H */
folderdialogacltab.h
The SpellCheckLineEdit class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 23:13:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.