src/mainwindow.cpp

changeset 1160
2cf16ba952bf
parent 1159
6ad8cdcd88d9
child 1162
94e12806d741
equal deleted inserted replaced
1159:6ad8cdcd88d9 1160:2cf16ba952bf
61 m_settings (makeSettings (this)), 61 m_settings (makeSettings (this)),
62 m_documents (new DocumentManager (this)), 62 m_documents (new DocumentManager (this)),
63 m_currentDocument (nullptr), 63 m_currentDocument (nullptr),
64 m_isSelectionLocked (false) 64 m_isSelectionLocked (false)
65 { 65 {
66 g_win = this;
67 m_messageLog = new MessageManager {this}; 66 m_messageLog = new MessageManager {this};
68 ui.setupUi (this); 67 ui.setupUi (this);
69 m_updatingTabs = false; 68 m_updatingTabs = false;
70 m_tabs = new QTabBar; 69 m_tabs = new QTabBar;
71 m_tabs->setTabsClosable (true); 70 m_tabs->setTabsClosable (true);
168 m_primitives->loadPrimitives(); 167 m_primitives->loadPrimitives();
169 } 168 }
170 169
171 MainWindow::~MainWindow() 170 MainWindow::~MainWindow()
172 { 171 {
173 g_win = nullptr;
174 delete m_guiUtilities; 172 delete m_guiUtilities;
175 delete m_primitives; 173 delete m_primitives;
176 delete m_grid; 174 delete m_grid;
177 delete m_mathFunctions; 175 delete m_mathFunctions;
178 delete &ui; 176 delete &ui;

mercurial