Changeset View
Changeset View
Standalone View
Standalone View
lib/document/document.cpp
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | |||||
152 | Document::Document(const QUrl &url) | 152 | Document::Document(const QUrl &url) | ||
153 | : QObject() | 153 | : QObject() | ||
154 | , d(new DocumentPrivate) | 154 | , d(new DocumentPrivate) | ||
155 | { | 155 | { | ||
156 | d->q = this; | 156 | d->q = this; | ||
157 | d->mImpl = nullptr; | 157 | d->mImpl = nullptr; | ||
158 | d->mUrl = url; | 158 | d->mUrl = url; | ||
159 | d->mKeepRawData = false; | 159 | d->mKeepRawData = false; | ||
160 | | ||||
161 | reload(); | | |||
162 | } | 160 | } | ||
163 | 161 | | |||
164 | Document::~Document() | 162 | Document::~Document() | ||
165 | { | 163 | { | ||
166 | // We do not want undo stack to emit signals, forcing us to emit signals | 164 | // We do not want undo stack to emit signals, forcing us to emit signals | ||
167 | // ourself while we are being destroyed. | 165 | // ourself while we are being destroyed. | ||
168 | disconnect(&d->mUndoStack, nullptr, this, nullptr); | 166 | disconnect(&d->mUndoStack, nullptr, this, nullptr); | ||
169 | 167 | | |||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |