File indexing completed on 2025-01-05 05:14:51
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 0011 #include "libkommitwidgets_export.h" 0012 0013 class CodeEditor; 0014 class LIBKOMMITWIDGETS_EXPORT CodeEditorSidebar : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit CodeEditorSidebar(CodeEditor *editor); 0019 QSize sizeHint() const override; 0020 0021 protected: 0022 void paintEvent(QPaintEvent *event) override; 0023 void mouseReleaseEvent(QMouseEvent *event) override; 0024 0025 private: 0026 CodeEditor *const m_codeEditor; 0027 };