|
|
@ -25,9 +25,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
this, SLOT(closeFile()));
|
|
|
|
this, SLOT(closeFile()));
|
|
|
|
connect(m_ui->actionExport, SIGNAL(activated()),
|
|
|
|
connect(m_ui->actionExport, SIGNAL(activated()),
|
|
|
|
this, SLOT(exportScene()));
|
|
|
|
this, SLOT(exportScene()));
|
|
|
|
|
|
|
|
|
|
|
|
connect(m_ui->actionQuit, SIGNAL(activated()),
|
|
|
|
connect(m_ui->actionQuit, SIGNAL(activated()),
|
|
|
|
QApplication::instance(), SLOT(quit()));
|
|
|
|
this, SLOT(quit()));
|
|
|
|
|
|
|
|
|
|
|
|
connect(m_ui->actionAbout_QtMindMap, SIGNAL(activated()),
|
|
|
|
connect(m_ui->actionAbout_QtMindMap, SIGNAL(activated()),
|
|
|
|
this, SLOT(about()));
|
|
|
|
this, SLOT(about()));
|
|
|
@ -209,6 +208,14 @@ void MainWindow::exportScene()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::quit()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (m_contentChanged && !closeFile())
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QApplication::instance()->quit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::keys()
|
|
|
|
void MainWindow::keys()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QMessageBox msgBox(this);
|
|
|
|
QMessageBox msgBox(this);
|
|
|
|