MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / getOrCreateMainWindow

Method getOrCreateMainWindow

source/Main.cpp:764–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

preserveWindowStateMethod · 0.80
hideWithAnimationMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected