| 207 | } |
| 208 | |
| 209 | void PartDocument::setUrl(const QUrl& newUrl) |
| 210 | { |
| 211 | const auto previousUrl = Sublime::UrlDocument::url(); |
| 212 | Sublime::UrlDocument::setUrl(newUrl); |
| 213 | if(!prettyName().isEmpty()) |
| 214 | setTitle(prettyName()); |
| 215 | notifyUrlChanged(previousUrl); |
| 216 | } |
| 217 | |
| 218 | void PartDocument::setPrettyName(const QString& name) |
| 219 | { |
no test coverage detected