summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/configuredivecomputerdialog.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 18:40:19 -0700
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-07-26 16:32:51 +0300
commit0e6c3db24c77331f52d17fd22494565dbafc6f84 (patch)
treef59cf5c3d29d108972919a9ee12b7c47ab77d45e /desktop-widgets/configuredivecomputerdialog.cpp
parent00c0f94d8c8623aa97f3f5c44a79bd8e53c8fd94 (diff)
downloadsubsurface-0e6c3db24c77331f52d17fd22494565dbafc6f84.tar.gz
Whitespace cleanup desktop-widget
Not entirely script based because of the broken 'else if'. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/configuredivecomputerdialog.cpp')
-rw-r--r--desktop-widgets/configuredivecomputerdialog.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp
index 9074d29e6..137859388 100644
--- a/desktop-widgets/configuredivecomputerdialog.cpp
+++ b/desktop-widgets/configuredivecomputerdialog.cpp
@@ -1,18 +1,18 @@
// SPDX-License-Identifier: GPL-2.0
#include "desktop-widgets/configuredivecomputerdialog.h"
-#include "core/qthelper.h"
-#include "desktop-widgets/mainwindow.h"
#include "core/display.h"
+#include "core/qthelper.h"
#include "core/subsurface-qt/SettingsObjectWrapper.h"
+#include "desktop-widgets/mainwindow.h"
// For fill_computer_list, descriptorLookup
#include "core/downloadfromdcthread.h"
#include <QFileDialog>
#include <QMessageBox>
-#include <QSettings>
#include <QNetworkReply>
#include <QProgressDialog>
+#include <QSettings>
GasSpinBoxItemDelegate::GasSpinBoxItemDelegate(QObject *parent, column_type type) : QStyledItemDelegate(parent), type(type)
{
@@ -21,7 +21,7 @@ GasSpinBoxItemDelegate::~GasSpinBoxItemDelegate()
{
}
-QWidget *GasSpinBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem&, const QModelIndex&) const
+QWidget *GasSpinBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const
{
// Create the spinbox and give it it's settings
QSpinBox *sb = new QSpinBox(parent);
@@ -65,7 +65,7 @@ GasTypeComboBoxItemDelegate::~GasTypeComboBoxItemDelegate()
{
}
-QWidget *GasTypeComboBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem&, const QModelIndex&) const
+QWidget *GasTypeComboBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const
{
// Create the combobox and populate it
QComboBox *cb = new QComboBox(parent);
@@ -287,7 +287,7 @@ void OstcFirmwareCheck::checkLatest(QWidget *_parent, device_data_t *data)
Y = (firmwareOnDevice & 0x07C0) >> 6;
Z = (firmwareOnDevice & 0x003E) >> 1;
beta = firmwareOnDevice & 0x0001;
- firmwareOnDeviceString = QString("%1.%2.%3%4").arg(X).arg(Y).arg(Z).arg(beta?" beta":"");
+ firmwareOnDeviceString = QString("%1.%2.%3%4").arg(X).arg(Y).arg(Z).arg(beta ? " beta" : "");
latestFirmwareAvailableNumber = (fwParts[0].toInt() << 11) + (fwParts[1].toInt() << 6) + (fwParts[2].toInt() << 1);
} else { // OSTC 3, Sport, Cr
firmwareOnDeviceString = QString("%1.%2").arg(firmwareOnDevice / 256).arg(firmwareOnDevice % 256);
@@ -358,7 +358,7 @@ ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog()
delete config;
}
-void ConfigureDiveComputerDialog::closeEvent(QCloseEvent*)
+void ConfigureDiveComputerDialog::closeEvent(QCloseEvent *)
{
dc_close();
@@ -900,7 +900,8 @@ void ConfigureDiveComputerDialog::getDeviceData()
{
#ifdef BT_SUPPORT
QString device = ui.bluetoothMode && btDeviceSelectionDialog ?
- btDeviceSelectionDialog->getSelectedDeviceAddress() : ui.device->currentText();
+ btDeviceSelectionDialog->getSelectedDeviceAddress() :
+ ui.device->currentText();
#else
QString device = ui.device->currentText();
#endif