Libksieve

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

KDE's Doxygen guidelines are available online.