Libksieve

sievelinenumberarea.cpp
1 /* SPDX-FileCopyrightText: 2012-2021 Laurent Montel <[email protected]>
2  *
3  * SPDX-License-Identifier: LGPL-2.0-or-later
4  */
5 
6 #include "sievelinenumberarea.h"
7 #include "sievetextedit.h"
8 
9 using namespace KSieveUi;
10 
11 SieveLineNumberArea::SieveLineNumberArea(SieveTextEdit *editor)
12  : QWidget(editor)
13  , m_sieveTextEdit(editor)
14 {
15 }
16 
17 QSize SieveLineNumberArea::sizeHint() const
18 {
19  return {m_sieveTextEdit->lineNumberAreaWidth(), 0};
20 }
21 
22 void SieveLineNumberArea::paintEvent(QPaintEvent *event)
23 {
24  m_sieveTextEdit->lineNumberAreaPaintEvent(event);
25 }
The SieveTextEdit class.
Definition: sievetextedit.h:20
virtual bool event(QEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.