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 #pragma once 0007 0008 #include <QWidget> 0009 0010 namespace KSieveUi 0011 { 0012 class SieveTextEdit; 0013 0014 class SieveLineNumberArea : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit SieveLineNumberArea(SieveTextEdit *editor); 0019 0020 QSize sizeHint() const override; 0021 0022 protected: 0023 void paintEvent(QPaintEvent *event) override; 0024 0025 private: 0026 SieveTextEdit *const m_sieveTextEdit; 0027 }; 0028 }