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

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

#include <CreateIcons.h>

Inheritance diagram for CreateIcons:
Inheritance graph
Collaboration diagram for CreateIcons:
Collaboration graph

Public Member Functions

 CreateIcons ()
 Single constructor. More...
 
void create (MainWindow &mw)
 Create QIcon items. More...
 

Detailed Description

Class to create icons for MainWindow class.

We derive from QObject and use Q_OBJECT so translations work

Definition at line 16 of file CreateIcons.h.

Constructor & Destructor Documentation

◆ CreateIcons()

CreateIcons::CreateIcons ( )

Single constructor.

Definition at line 16 of file CreateIcons.cpp.

17 {
18 }

Member Function Documentation

◆ create()

void CreateIcons::create ( MainWindow mw)

Create QIcon items.

Definition at line 20 of file CreateIcons.cpp.

21 {
22  LOG4CPP_INFO_S ((*mainCat)) << "CreateIcons::create";
23 
24  QIcon icon;
25  QPixmap icon16 (bannerapp_16);
26  QPixmap icon32 (bannerapp_32);
27  QPixmap icon64 (bannerapp_64);
28  QPixmap icon128 (bannerapp_128);
29  QPixmap icon256 (bannerapp_256);
30 
31  icon.addPixmap (icon16);
32  icon.addPixmap (icon32);
33  icon.addPixmap (icon64);
34  icon.addPixmap (icon128);
35  icon.addPixmap (icon256);
36 
37  mw.setWindowIcon (icon);
38 }
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
log4cpp::Category * mainCat
Definition: Logger.cpp:14

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