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

Method CreateDocument2

src/database/WizDatabase.cpp:761–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761QObject* WizFolder::CreateDocument2(const QString& strTitle, const QString& strURL)
762{
763 WIZDOCUMENTDATA data;
764 CString strHtml = "<!DOCTYPE html><html><head></head><body><p><br></p></body></html>";
765 if (!m_db.createDocumentAndInit(strHtml, "", 0, strTitle, "newnote", m_strLocation, strURL, data))
766 return nullptr;
767
768 WizDocument* pDoc = new WizDocument(m_db, data, this);
769
770 return pDoc;
771}
772
773void WizFolder::Close()
774{

Callers

nothing calls this directly

Calls 1

createDocumentAndInitMethod · 0.80

Tested by

no test coverage detected