diff options
author | kh1 <qt-info@nokia.com> | 2011-06-01 14:07:47 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-06-01 14:07:47 +0200 |
commit | e7e57db90a2c35411ee3a75400fd3819a3fc7a00 (patch) | |
tree | 599f6f2b7d14e588f72aaa56459cd006667c0d84 /examples/testapp/updatesettingsdialog.cpp | |
parent | 3023e6c7bb5e5da19f769daeea56e988590f2214 (diff) |
Cleanup. Style changes.
Diffstat (limited to 'examples/testapp/updatesettingsdialog.cpp')
-rw-r--r-- | examples/testapp/updatesettingsdialog.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/examples/testapp/updatesettingsdialog.cpp b/examples/testapp/updatesettingsdialog.cpp index 0c3c676cb..f65a391b6 100644 --- a/examples/testapp/updatesettingsdialog.cpp +++ b/examples/testapp/updatesettingsdialog.cpp @@ -33,45 +33,46 @@ #include "updatesettingsdialog.h" #include "ui_updatesettingsdialog.h" -#include "common/repository.h" +#include <common/repository.h> +#include <updatesettings.h> -#include "updatesettings.h" +#include <QtCore/QDateTime> -#include <QDateTime> -#include <QStringListModel> +#include <QtGui/QStringListModel> using namespace QInstaller; class UpdateSettingsDialog::Private { public: - Private( UpdateSettingsDialog* qq ) - : q( qq ) + Private(UpdateSettingsDialog *qq) + : q(qq) { - ui.setupUi( q ); + ui.setupUi(q); } private: - UpdateSettingsDialog* const q; + UpdateSettingsDialog *const q; public: Ui::UpdateSettingsDialog ui; }; -UpdateSettingsDialog::UpdateSettingsDialog( QWidget* parent ) - : QDialog( parent ), - d( new Private( this ) ) +UpdateSettingsDialog::UpdateSettingsDialog(QWidget *parent) + : QDialog(parent), + d(new Private(this)) { - connect( d->ui.buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) ); - connect( d->ui.buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) ); - - connect( d->ui.widget, SIGNAL( checkForUpdates() ), this, SLOT( accept() ) ); - connect( d->ui.widget, SIGNAL( checkForUpdates() ), this, SIGNAL( checkForUpdates() ) ); - setFixedSize( size() ); + connect(d->ui.buttonBox, SIGNAL(accepted()), this, SLOT(accept())); + connect(d->ui.buttonBox, SIGNAL(rejected()), this, SLOT(reject())); + + connect(d->ui.widget, SIGNAL(checkForUpdates()), this, SLOT(accept())); + connect(d->ui.widget, SIGNAL(checkForUpdates()), this, SIGNAL(checkForUpdates())); + setFixedSize(size()); } UpdateSettingsDialog::~UpdateSettingsDialog() { + delete d; } void UpdateSettingsDialog::accept() |