| 2528 | } |
| 2529 | |
| 2530 | void MainWin::closeEvent(QCloseEvent* event) { |
| 2531 | m_closing = true; |
| 2532 | |
| 2533 | // save the current state of the default dock widgets (project explorer, etc) _before_ all other content docks are closed |
| 2534 | auto group = Settings::group(QStringLiteral("MainWin")); |
| 2535 | group.writeEntry(QLatin1String("DockWidgetState"), m_dockManagerMain->saveState()); |
| 2536 | |
| 2537 | if (!this->closeProject()) { |
| 2538 | m_closing = false; |
| 2539 | event->ignore(); |
| 2540 | } |
| 2541 | } |
| 2542 | |
| 2543 | void MainWin::dragEnterEvent(QDragEnterEvent* event) { |
| 2544 | event->accept(); |
nothing calls this directly
no test coverage detected