diff options
author | kh1 <qt-info@nokia.com> | 2011-06-01 15:29:31 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-06-01 15:29:31 +0200 |
commit | 0711e42ccda9c583eb472ae89904faf2c232b3ba (patch) | |
tree | bdb434c96d724af67d2ca96d1ec29e6d1f39a56e /examples/testapp/updatesettingswidget.cpp | |
parent | e2e31f26bce9092426c8193abaf066536f8d3d9c (diff) |
Style changes.
Diffstat (limited to 'examples/testapp/updatesettingswidget.cpp')
-rw-r--r-- | examples/testapp/updatesettingswidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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()); |