mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
3387ccc6f6
commit
a27f67c026
28 changed files with 387 additions and 323 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue