BibleTime
src
frontend
searchdialog
analysis
csearchanalysislegenditem.h
Go to the documentation of this file.
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, https://bibletime.info/
6
*
7
* Copyright 1999-2025 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#pragma once
14
15
#include <QGraphicsRectItem>
16
#include "../../../backend/cswordmodulesearch.h"
17
18
19
class
QPainter;
20
class
QStyleOptionGraphicsItem;
21
class
QWidget
;
22
23
namespace
Search
{
24
25
class
CSearchAnalysisLegendItem
:
public
QGraphicsRectItem
{
26
public
:
// methods:
27
CSearchAnalysisLegendItem
(
CSwordModuleSearch::Results
const
* results)
28
:
m_results
(results)
29
{}
30
31
private
:
// methods:
32
void
paint
(QPainter* painter,
const
QStyleOptionGraphicsItem*,
QWidget
*)
override
;
33
34
private
:
// fields:
35
36
CSwordModuleSearch::Results
const
*
const
m_results
;
37
38
};
39
40
}
// namespace Search
QGraphicsRectItem
QWidget
Search::CSearchAnalysisLegendItem
Definition
csearchanalysislegenditem.h:25
Search::CSearchAnalysisLegendItem::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
Definition
csearchanalysislegenditem.cpp:34
Search::CSearchAnalysisLegendItem::CSearchAnalysisLegendItem
CSearchAnalysisLegendItem(CSwordModuleSearch::Results const *results)
Definition
csearchanalysislegenditem.h:27
Search::CSearchAnalysisLegendItem::m_results
CSwordModuleSearch::Results const *const m_results
Definition
csearchanalysislegenditem.h:36
CSwordModuleSearch::Results
std::vector< ModuleSearchResult > Results
Definition
cswordmodulesearch.h:50
Search
Definition
bibletime.h:29
Generated by
1.9.8