Engauge Digitizer  2
Public Member Functions | List of all members
CreateScene Class Reference

Class to create QGraphicsScene for MainWindow class. More...

#include <CreateScene.h>

Inheritance diagram for CreateScene:
Inheritance graph
Collaboration diagram for CreateScene:
Collaboration graph

Public Member Functions

 CreateScene ()
 Single constructor. More...
 
void create (MainWindow &mw)
 Create QGraphicsScene. More...
 

Detailed Description

Class to create QGraphicsScene for MainWindow class.

We derive from QObject and use Q_OBJECT so translations work

Definition at line 15 of file CreateScene.h.

Constructor & Destructor Documentation

◆ CreateScene()

CreateScene::CreateScene ( )

Single constructor.

Definition at line 13 of file CreateScene.cpp.

15 {

Member Function Documentation

◆ create()

void CreateScene::create ( MainWindow mw)

Create QGraphicsScene.

Definition at line 17 of file CreateScene.cpp.

19 {
20  LOG4CPP_INFO_S ((*mainCat)) << "CreateScene::create";
21 
22  mw.m_scene = new GraphicsScene (&mw);
23  mw.m_view = new GraphicsView (mw.m_scene, mw);
24  mw.m_layout->addWidget (mw.m_view);

The documentation for this class was generated from the following files:
GraphicsView
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
Definition: GraphicsView.h:19
LOG4CPP_INFO_S
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
GraphicsScene
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:35
mainCat
log4cpp::Category * mainCat
Definition: Logger.cpp:14