| 19 | // ===== Constructor & Destructor ===== |
| 20 | |
| 21 | Document::Document() |
| 22 | { |
| 23 | // Generate unique ID |
| 24 | id = QUuid::createUuid().toString(QUuid::WithoutBraces); |
| 25 | |
| 26 | // Set timestamps |
| 27 | created = QDateTime::currentDateTime(); |
| 28 | lastModified = created; |
| 29 | |
| 30 | #ifdef SPEEDYNOTE_DEBUG |
| 31 | qDebug() << "Document CREATED:" << this << "id=" << id.left(8); |
| 32 | #endif |
| 33 | } |
| 34 | |
| 35 | Document::~Document() |
| 36 | { |
nothing calls this directly
no outgoing calls
no test coverage detected