documentwindow: Add Quit menu item.
parent
d2862b9e50
commit
d02331d1e7
|
@ -506,6 +506,10 @@ DocumentWindow::DocumentWindow() :
|
||||||
|
|
||||||
m_fileMenu->addSeparator();
|
m_fileMenu->addSeparator();
|
||||||
|
|
||||||
|
m_quitAction = m_fileMenu->addAction(tr("&Quit"),
|
||||||
|
this, &DocumentWindow::close,
|
||||||
|
QKeySequence::Quit);
|
||||||
|
|
||||||
connect(m_fileMenu, &QMenu::aboutToShow, [=]() {
|
connect(m_fileMenu, &QMenu::aboutToShow, [=]() {
|
||||||
m_exportAsObjAction->setEnabled(m_graphicsWidget->hasItems());
|
m_exportAsObjAction->setEnabled(m_graphicsWidget->hasItems());
|
||||||
//m_exportAsObjPlusMaterialsAction->setEnabled(m_graphicsWidget->hasItems());
|
//m_exportAsObjPlusMaterialsAction->setEnabled(m_graphicsWidget->hasItems());
|
||||||
|
|
|
@ -118,6 +118,7 @@ private:
|
||||||
QAction *m_showPreferencesAction;
|
QAction *m_showPreferencesAction;
|
||||||
QMenu *m_exportMenu;
|
QMenu *m_exportMenu;
|
||||||
QAction *m_changeTurnaroundAction;
|
QAction *m_changeTurnaroundAction;
|
||||||
|
QAction *m_quitAction;
|
||||||
|
|
||||||
QAction *m_exportAsObjAction;
|
QAction *m_exportAsObjAction;
|
||||||
QAction *m_exportAsObjPlusMaterialsAction;
|
QAction *m_exportAsObjPlusMaterialsAction;
|
||||||
|
|
Loading…
Reference in New Issue