1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, http://www.bibletime.info/.
6 *
7 * Copyright 1999-2016 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License version 2.0.
9 *
10 **********/
11 
12 #ifndef SEARCHCSEARCHANALYSISLEGENDITEM_H
13 #define SEARCHCSEARCHANALYSISLEGENDITEM_H
14 
15 #include <QGraphicsRectItem>
16 
17 #include "backend/drivers/btmodulelist.h"
18 
19 namespace Search {
20 
21 class CSearchAnalysisLegendItem : public QGraphicsRectItem {
22     public: /* Methods: */
CSearchAnalysisLegendItem(const BtConstModuleList & modules)23         inline CSearchAnalysisLegendItem(const BtConstModuleList &modules)
24             : m_moduleList(modules) {}
25 
26     private: /* Methods: */
27         void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*) override;
28 
29     private: /* Fields: */
30         BtConstModuleList m_moduleList;
31 
32 };
33 
34 } // namespace Search
35 
36 #endif
37