Check-in [27ded31637]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:MainWindow: improve constructor code
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | improvements-to-main-menu
Files: files | file ages | folders
SHA1:27ded316379294597ac3acbfb30985bfc936cb51
User & Date: tion 2019-02-15 23:34:41
Context
2019-02-16
00:08
Glyphs: make initialization method names consistent check-in: f0a1250abe user: tion tags: improvements-to-main-menu
2019-02-15
23:34
MainWindow: improve constructor code check-in: 27ded31637 user: tion tags: improvements-to-main-menu
23:20
coordinateData: add destructor check-in: 7a8afa9233 user: tion tags: improvements-to-main-menu
Changes

Changes to src/MainWindow.cpp.

7
8
9
10
11
12
13
14

15
16
17
18
19
20
21
22
// CLASS: MainWindow //
///////////////////////
//------------------------------------------------------------------
/////////////////
// CONSTRUCTOR //
/////////////////
//------------------------------------------------------------------
MainWindow::MainWindow()

	: conversion_screen (new Window)
{
   setCentralWidget (conversion_screen);
   setWindowTitle ("nmspd");

	// Create dock widget: Top
   portal_address = new Glyphs;
   QDockWidget *topWidget = new QDockWidget(tr ("Portal Address"), this);







|
>
|







7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CLASS: MainWindow //
///////////////////////
//------------------------------------------------------------------
/////////////////
// CONSTRUCTOR //
/////////////////
//------------------------------------------------------------------
MainWindow::MainWindow (QWidget *parent)
	: QMainWindow (parent),
	conversion_screen (new Window)
{
   setCentralWidget (conversion_screen);
   setWindowTitle ("nmspd");

	// Create dock widget: Top
   portal_address = new Glyphs;
   QDockWidget *topWidget = new QDockWidget(tr ("Portal Address"), this);

Changes to src/MainWindow.h.

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
   Q_OBJECT

   public:
      /////////////////
      // CONSTRUCTOR //
      /////////////////
      /** Default constructor. */
      MainWindow();

   signals:

   public slots:
      //void action_triggered (QAction *);
      /** Show input portal address window. */
      void showPortal();







|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
   Q_OBJECT

   public:
      /////////////////
      // CONSTRUCTOR //
      /////////////////
      /** Default constructor. */
      explicit MainWindow(QWidget *parent = 0);

   signals:

   public slots:
      //void action_triggered (QAction *);
      /** Show input portal address window. */
      void showPortal();