Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /! [9]
- bool MainWindow::save()
- //! [9] //! [10]
- {
- if (curFile.isEmpty()) {
- return saveAs();
- } else {
- return saveFile(curFile);
- }
- }
- //! [10]
- //! [11]
- bool MainWindow::saveAs()
- //! [11] //! [12]
- {
- QString fileName = QFileDialog::getSaveFileName(this);
- if (fileName.isEmpty())
- return false;
- return saveFile(fileName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement