MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / waitForDone

Method waitForDone

src/gui/documentviewer/WizDocumentView.cpp:254–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void WizDocumentView::waitForDone()
255{
256 m_editStatusChecker->thread()->quit();
257 m_editStatusSyncThread->waitForDone();
258
259 bool done = false;
260 m_web->trySaveDocument(m_note, false, [=, &done](const QVariant& ret){
261 done = true;
262 });
263
264 while (!done)
265 {
266 QApplication::processEvents();
267 }
268}
269
270void WizDocumentView::waitForSave()
271{

Callers 3

closeEventMethod · 0.45
handleNoteCreatedMethod · 0.45
waitForThreadMethod · 0.45

Calls 3

quitMethod · 0.80
threadMethod · 0.80
trySaveDocumentMethod · 0.45

Tested by

no test coverage detected