| 31 | } |
| 32 | |
| 33 | void MainWindowTitleProvider::load() |
| 34 | { |
| 35 | update(); |
| 36 | context()->currentProjectChanged().onNotify(this, [this]() { |
| 37 | if (auto currentProject = context()->currentProject()) { |
| 38 | currentProject->displayNameChanged().onNotify(this, [this]() { |
| 39 | update(); |
| 40 | }); |
| 41 | |
| 42 | currentProject->needSave().notification.onNotify(this, [this]() { |
| 43 | update(); |
| 44 | }); |
| 45 | } |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | QString MainWindowTitleProvider::title() const |
| 50 | { |
nothing calls this directly
no test coverage detected