Engauge Digitizer 2
Loading...
Searching...
No Matches
CreateCentralWidget Class Reference

Class to the central QWidget for MainWindow class. More...

#include <CreateCentralWidget.h>

Inheritance diagram for CreateCentralWidget:
Inheritance graph
Collaboration diagram for CreateCentralWidget:
Collaboration graph

Public Member Functions

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

Detailed Description

Class to the central QWidget for MainWindow class.

We derive from QObject and use Q_OBJECT so translations work

Definition at line 16 of file CreateCentralWidget.h.

Constructor & Destructor Documentation

◆ CreateCentralWidget()

CreateCentralWidget::CreateCentralWidget ( )

Single constructor.

Definition at line 13 of file CreateCentralWidget.cpp.

14{
15}

Member Function Documentation

◆ create()

void CreateCentralWidget::create ( MainWindow & mw)

Create QGraphicsScene.

Definition at line 17 of file CreateCentralWidget.cpp.

18{
19 LOG4CPP_INFO_S ((*mainCat)) << "CreateCentralWidget::create";
20
21 QWidget *widget = new QWidget;
22 mw.setCentralWidget (widget);
23 mw.m_layout = new QGridLayout;
24 mw.m_layout->setContentsMargins (0, 0, 0, 0);
25 mw.m_layout->setSpacing (0);
26 widget->setLayout (mw.m_layout);
27}
log4cpp::Category * mainCat
Definition Logger.cpp:14
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

The documentation for this class was generated from the following files: