File indexing completed on 2024-03-24 03:53:58
0001 /* 0002 SPDX-FileCopyrightText: 2014 Andreas Xavier <andxav at zoho dot com> 0003 SPDX-FileCopyrightText: 2014 Inge Wallin <inge@lysator.liu.se> 0004 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef STATISTICSLEGENDWIDGET_H 0008 #define STATISTICSLEGENDWIDGET_H 0009 0010 #include <KEduVocText> 0011 0012 #include <QColor> 0013 #include <QList> 0014 #include <QWidget> 0015 0016 /**Draws the statistics legend and provides color information about the legend**/ 0017 class StatisticsLegendWidget : public QWidget 0018 { 0019 Q_OBJECT 0020 public: 0021 /// constructor 0022 explicit StatisticsLegendWidget(QWidget *parent = nullptr); 0023 0024 protected: 0025 /// paintEvent @p e event 0026 void paintEvent(QPaintEvent *e) override; 0027 }; 0028 0029 #endif