summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2011-07-25 09:42:18 +0200
committerTim Jenssen <tim.jenssen@nokia.com>2011-07-25 09:42:18 +0200
commit94119a894d79bca3e8cd3d03e64afbbab7d72b53 (patch)
treedaffabeff0c35f044538d9b66a56be61dadbe560 /examples
parent2f961a11ae27d7e49ab5a3bfc0719305f1132fdb (diff)
make the testapp compile
Diffstat (limited to 'examples')
-rw-r--r--examples/testapp/mainwindow.cpp2
-rw-r--r--examples/testapp/updateagent.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/testapp/mainwindow.cpp b/examples/testapp/mainwindow.cpp
index 91a13780a..f1a0c0e01 100644
--- a/examples/testapp/mainwindow.cpp
+++ b/examples/testapp/mainwindow.cpp
@@ -99,7 +99,7 @@ void MainWindow::checkForUpdates()
}
// no updates for us
- if (m_core.components(false, UpdaterMode).isEmpty()) {
+ if (m_core.updaterComponents().isEmpty()) {
QMessageBox::information(this, tr("Check for Updates"), tr("There are currently no updates "
"available for you."));
return;
diff --git a/examples/testapp/updateagent.cpp b/examples/testapp/updateagent.cpp
index 994440a48..baefb1ddd 100644
--- a/examples/testapp/updateagent.cpp
+++ b/examples/testapp/updateagent.cpp
@@ -82,7 +82,7 @@ public:
throw Error(tr("Software Update failed."));
settings.setLastResult(tr("Software Update run successfully."));
- QList<Component*> components = core.components(false, UpdaterMode);
+ QList<Component*> components = core.updaterComponents();
// no updates available
if (components.isEmpty())
return;