BibleTime
csearchanalysisview.cpp
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#include "csearchanalysisview.h"
14
15#include <QGraphicsScene>
16#include <QGraphicsView>
17#include <QRectF>
18#include <Qt>
19#include <QWidget>
21
22
23namespace Search {
24
26 : QGraphicsView(scene, parent) {
27 setFocusPolicy(Qt::WheelFocus);
28 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
29 resize(sizeHint());
30}
31
32/** No descriptions */
33void CSearchAnalysisView::resizeEvent( QResizeEvent* e) {
34 QGraphicsView::resizeEvent(e);
35 scene()->setSceneRect(0, 0, scene()->sceneRect().width(), viewport()->height() );
36}
37
38}
CSearchAnalysisView(CSearchAnalysisScene *scene, QWidget *parent)
void resizeEvent(QResizeEvent *e) override