| 762 | } |
| 763 | |
| 764 | MainWindow* getOrCreateMainWindow() |
| 765 | { |
| 766 | MainWindow *w = m_mainWindow |
| 767 | ? m_mainWindow.data() |
| 768 | : MainWindow::findExistingMainWindow(); |
| 769 | if (w) |
| 770 | return w; |
| 771 | |
| 772 | w = new MainWindow(); |
| 773 | w->setAttribute(Qt::WA_DeleteOnClose); |
| 774 | if (m_launcher) { |
| 775 | w->preserveWindowState(m_launcher, false); |
| 776 | m_launcher->hideWithAnimation(); |
| 777 | } |
| 778 | w->show(); |
| 779 | m_mainWindow = w; |
| 780 | return w; |
| 781 | } |
| 782 | |
| 783 | void processInbox() |
| 784 | { |
nothing calls this directly
no test coverage detected