File indexing completed on 2024-12-29 04:54:48

0001 /* SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
0002  *
0003  * SPDX-License-Identifier: LGPL-2.0-or-later
0004  */
0005 
0006 #include "sievelinenumberarea.h"
0007 #include "sievetextedit.h"
0008 
0009 using namespace KSieveUi;
0010 
0011 SieveLineNumberArea::SieveLineNumberArea(SieveTextEdit *editor)
0012     : QWidget(editor)
0013     , m_sieveTextEdit(editor)
0014 {
0015 }
0016 
0017 QSize SieveLineNumberArea::sizeHint() const
0018 {
0019     return {m_sieveTextEdit->lineNumberAreaWidth(), 0};
0020 }
0021 
0022 void SieveLineNumberArea::paintEvent(QPaintEvent *event)
0023 {
0024     m_sieveTextEdit->lineNumberAreaPaintEvent(event);
0025 }
0026 
0027 #include "moc_sievelinenumberarea.cpp"