diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-10-06 15:58:43 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-10-06 16:05:51 +0200 |
commit | 62cf969c09ef821a0f8153e2fd9538c6664e8bef (patch) | |
tree | 6f07ab78f708e230b80b8f0393817a8702c5216b /src/sdk/updatechecker.cpp | |
parent | 0d529d9a8920ba308897c2ca3c69ac98109b0340 (diff) |
Rewrite the component getter mess, remove superfluous methods.
Now we can combine some enum values to achieve the same as before
with the several getter functions, removes the clutter from the API.
Change-Id: I6368b0ff77821ac95d1defaec4af27dd7d383396
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Diffstat (limited to 'src/sdk/updatechecker.cpp')
-rw-r--r-- | src/sdk/updatechecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sdk/updatechecker.cpp b/src/sdk/updatechecker.cpp index 2ebe39b92..115db45ea 100644 --- a/src/sdk/updatechecker.cpp +++ b/src/sdk/updatechecker.cpp @@ -96,7 +96,8 @@ int UpdateChecker::check() if (!core.fetchRemotePackagesTree()) throw QInstaller::Error(core.error()); - const QList<QInstaller::Component *> components = core.updaterComponents(); + const QList<QInstaller::Component *> components = + core.components(QInstaller::PackageManagerCore::ComponentType::Root); if (components.isEmpty()) throw QInstaller::Error(QLatin1String("There are currently no updates available.")); |