summaryrefslogtreecommitdiffstats
path: root/examples/testapp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-06-01 15:29:31 +0200
committerkh1 <qt-info@nokia.com>2011-06-01 15:29:31 +0200
commit0711e42ccda9c583eb472ae89904faf2c232b3ba (patch)
treebdb434c96d724af67d2ca96d1ec29e6d1f39a56e /examples/testapp
parente2e31f26bce9092426c8193abaf066536f8d3d9c (diff)
Style changes.
Diffstat (limited to 'examples/testapp')
-rw-r--r--examples/testapp/mainwindow.cpp6
-rw-r--r--examples/testapp/updateagent.cpp2
-rw-r--r--examples/testapp/updatesettingswidget.cpp10
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/testapp/mainwindow.cpp b/examples/testapp/mainwindow.cpp
index 81a613e2c..9c7364de5 100644
--- a/examples/testapp/mainwindow.cpp
+++ b/examples/testapp/mainwindow.cpp
@@ -102,7 +102,7 @@ void MainWindow::checkForUpdates()
}
// no updates for us
- if(m_installer.components(false, UpdaterMode).isEmpty()) {
+ if (m_installer.components(false, UpdaterMode).isEmpty()) {
QMessageBox::information(this, tr("Check for Updates"), tr("There are currently no updates "
"available for you."));
return;
@@ -114,7 +114,7 @@ void MainWindow::checkForUpdates()
// this will automatically mark components as to get installed
ComponentSelectionDialog componentSelection(&m_installer, this);
- if(componentSelection.exec() == QDialog::Rejected)
+ if (componentSelection.exec() == QDialog::Rejected)
return;
QProgressDialog dialog(this);
@@ -155,7 +155,7 @@ void MainWindow::updatesAvailable()
void MainWindow::updatesInstalled()
{
// only ask that dumb question if a SelfUpdateOperation was executed
- if(!KDSelfRestarter::restartOnQuit()) {
+ if (!KDSelfRestarter::restartOnQuit()) {
QMessageBox::information(this, tr("Updates Installed"), tr("Installation complete."));
return;
}
diff --git a/examples/testapp/updateagent.cpp b/examples/testapp/updateagent.cpp
index 7f0e860fe..7f7722c08 100644
--- a/examples/testapp/updateagent.cpp
+++ b/examples/testapp/updateagent.cpp
@@ -88,7 +88,7 @@ public:
QList<Component*> components = installer.components(false, UpdaterMode);
// no updates available
- if(components.isEmpty())
+ if (components.isEmpty())
return;
emit q->updatesAvailable();
}
diff --git a/examples/testapp/updatesettingswidget.cpp b/examples/testapp/updatesettingswidget.cpp
index 92c60bcf5..6455760fe 100644
--- a/examples/testapp/updatesettingswidget.cpp
+++ b/examples/testapp/updatesettingswidget.cpp
@@ -55,7 +55,7 @@ public:
void addUpdateSource()
{
const int newRow = model.rowCount();
- if(model.insertRow(newRow))
+ if (model.insertRow(newRow))
ui.treeViewUpdateSources->edit(model.index(newRow, 0));
}
@@ -92,12 +92,12 @@ UpdateSettingsWidget::~UpdateSettingsWidget()
void UpdateSettingsWidget::showEvent(QShowEvent *event)
{
Q_UNUSED(event)
- if(d->initialized)
+ if (d->initialized)
return;
d->ui.checkBoxCheckForUpdates->setChecked(d->settings.updateInterval() > 0);
d->ui.checkBoxCheckOnlyImportant->setChecked(d->settings.checkOnlyImportantUpdates());
- switch(qAbs(d->settings.updateInterval())) {
+ switch (qAbs(d->settings.updateInterval())) {
case UpdateSettings::Daily:
d->ui.comboBoxFrequency->setCurrentIndex(0);
break;
@@ -121,7 +121,7 @@ void UpdateSettingsWidget::showEvent(QShowEvent *event)
d->ui.treeViewUpdateSources->setModel(&d->model);
d->ui.labelLastUpdateResult->clear();
- if(!d->settings.lastResult().isEmpty()) {
+ if (!d->settings.lastResult().isEmpty()) {
d->ui.labelLastUpdateResult->setText(d->settings.lastResult() + QLatin1Char('\n')
+ d->settings.lastCheck().toString());
}
@@ -142,7 +142,7 @@ void UpdateSettingsWidget::accept()
break;
}
- if(!d->ui.checkBoxCheckForUpdates->isChecked())
+ if (!d->ui.checkBoxCheckForUpdates->isChecked())
d->settings.setUpdateInterval(-d->settings.updateInterval());
d->settings.setCheckOnlyImportantUpdates(d->ui.checkBoxCheckOnlyImportant->isChecked());