| 188 | } |
| 189 | |
| 190 | void UpdateDialog::handleUpdateInfo(const PluginUpdater::UpdateInfo &info) |
| 191 | { |
| 192 | m_updateInfo = info; |
| 193 | |
| 194 | if (!info.isUpdateAvailable) { |
| 195 | m_titleLabel->setText(tr("QodeAssist is up to date")); |
| 196 | m_versionLabel->setText( |
| 197 | tr("You are using the latest version: %1").arg(m_updater->currentVersion())); |
| 198 | return; |
| 199 | } |
| 200 | |
| 201 | m_titleLabel->setText(tr("A new version of QodeAssist is available!")); |
| 202 | m_versionLabel->setText(tr("Version %1 is now available - you have %2") |
| 203 | .arg(info.version, m_updater->currentVersion())); |
| 204 | |
| 205 | if (!info.changeLog.isEmpty()) { |
| 206 | m_changelogText->setText(info.changeLog); |
| 207 | } else { |
| 208 | m_changelogText->setText( |
| 209 | tr("No release notes available. Check the release page for more information.")); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | void UpdateDialog::openReleasePage() |
| 214 | { |
nothing calls this directly
no test coverage detected