Libksieve

sievelinenumberarea.h
1 /* Copyright (C) 2012-2020 Laurent Montel <[email protected]>
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Library General Public
5  * License as published by the Free Software Foundation; either
6  * version 2 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Library General Public License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public License
14  * along with this library; see the file COPYING.LIB. If not, write to
15  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  * Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KSIEVE_KSIEVEUI_SIEVELINENUMBERAREA_H
20 #define KSIEVE_KSIEVEUI_SIEVELINENUMBERAREA_H
21 
22 #include <QWidget>
23 
24 namespace KSieveUi {
25 class SieveTextEdit;
26 
27 class SieveLineNumberArea : public QWidget
28 {
29  Q_OBJECT
30 public:
31  explicit SieveLineNumberArea(SieveTextEdit *editor);
32 
33  QSize sizeHint() const override;
34 
35 protected:
36  void paintEvent(QPaintEvent *event) override;
37 
38 private:
39  SieveTextEdit *m_sieveTextEdit = nullptr;
40 };
41 }
42 
43 #endif
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:09:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.