From a27f67c02612791fad73b4e0550d942dc3a5a339 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 16 Jan 2014 11:50:56 +0700 Subject: Whitespace and coding style updates Another futile attempt to cleanup the code and make coding style and whitespace consistent. I tried to add a file that describes the key points of our coding style. I have no illusions that this will help the least bit... This commit should ONLY change whitespace Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'qt-ui/simplewidgets.cpp') diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 6fd88f5af..f3555e376 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -15,13 +15,13 @@ #include "../dive.h" #include "mainwindow.h" -class MinMaxAvgWidgetPrivate{ +class MinMaxAvgWidgetPrivate { public: QLabel *avgIco, *avgValue; QLabel *minIco, *minValue; QLabel *maxIco, *maxValue; - MinMaxAvgWidgetPrivate(MinMaxAvgWidget *owner){ + MinMaxAvgWidgetPrivate(MinMaxAvgWidget *owner) { avgIco = new QLabel(owner); avgIco->setPixmap(QIcon(":/average").pixmap(16,16)); avgIco->setToolTip(QObject::tr("Average")); @@ -60,8 +60,9 @@ double MinMaxAvgWidget::minimum() const return d->minValue->text().toDouble(); } -MinMaxAvgWidget::MinMaxAvgWidget(QWidget* parent) - : d(new MinMaxAvgWidgetPrivate(this)){ +MinMaxAvgWidget::MinMaxAvgWidget(QWidget* parent) : d(new MinMaxAvgWidgetPrivate(this)) +{ + } MinMaxAvgWidget::~MinMaxAvgWidget() @@ -112,7 +113,7 @@ RenumberDialog* RenumberDialog::instance() void RenumberDialog::buttonClicked(QAbstractButton* button) { - if (ui.buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole){ + if (ui.buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole) { qDebug() << "Renumbering."; renumber_dives(ui.spinBox->value()); } @@ -134,7 +135,7 @@ void ShiftTimesDialog::buttonClicked(QAbstractButton* button) { int amount; - if (ui.buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole){ + if (ui.buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole) { amount = ui.timeEdit->time().hour() * 3600 + ui.timeEdit->time().minute() * 60; if (ui.backwards->isChecked()) amount *= -1; -- cgit v1.2.3-70-g09d2