mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Whitespace cleanup
Minor change to the perl postprocessing script and resulting changes to the affected source files. This deals with two issues: - "foreach"-like structures were not always treated correctly - some longer calculations that ended on "+ constant" were reformatted in a rather unatractive manner In one source file (divelist.c) I ended up adding braces to the sources... trying to cascade the indentation further down without having the block there seemed a lot more trouble than it's worth. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
917ce5aff5
commit
7c535452f9
10 changed files with 26 additions and 26 deletions
|
|
@ -120,7 +120,7 @@ void DiveListView::restoreExpandedRows()
|
|||
{
|
||||
setAnimated(false);
|
||||
Q_FOREACH(const int & i, expandedRows)
|
||||
setExpanded(model()->index(i, 0), true);
|
||||
setExpanded(model()->index(i, 0), true);
|
||||
setAnimated(true);
|
||||
}
|
||||
void DiveListView::fixMessyQtModelBehaviour()
|
||||
|
|
|
|||
|
|
@ -103,8 +103,7 @@ void DiveLogImportDialog::on_buttonBox_accepted()
|
|||
ui->CSV->setValue(VAL);\
|
||||
ui->CSV->setEnabled(VAL >= 0);\
|
||||
ui->BOX->setChecked(VAL >= 0);\
|
||||
ui->CSV->blockSignals(false); \
|
||||
})
|
||||
ui->CSV->blockSignals(false); })
|
||||
void DiveLogImportDialog::on_knownImports_currentIndexChanged(int index)
|
||||
{
|
||||
if (specialCSV.contains(index)) {
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ QStringList GroupedLineEdit::getBlockStringList()
|
|||
QStringList retList;
|
||||
Private::Block block;
|
||||
foreach(block, d->blocks)
|
||||
retList.append(block.text);
|
||||
retList.append(block.text);
|
||||
return retList;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -872,7 +872,7 @@ void MainTab::saveTags()
|
|||
QString tag;
|
||||
taglist_clear(mydive->tag_list);
|
||||
foreach(tag, ui.tagWidget->getBlockStringList())
|
||||
taglist_add_tag(mydive->tag_list, tag.toUtf8().data()););
|
||||
taglist_add_tag(mydive->tag_list, tag.toUtf8().data()););
|
||||
}
|
||||
|
||||
void MainTab::on_tagWidget_textChanged()
|
||||
|
|
|
|||
|
|
@ -621,7 +621,7 @@ void MainWindow::initialUiSetup()
|
|||
}
|
||||
|
||||
#define TOOLBOX_PREF_BUTTON(pref, setting, button) \
|
||||
prefs.pref = s.value(#setting).toBool(); \
|
||||
prefs.pref = s.value(#setting).toBool(); \
|
||||
ui.button->setChecked(prefs.pref);
|
||||
|
||||
void MainWindow::readSettings()
|
||||
|
|
@ -835,7 +835,7 @@ void MainWindow::removeRecentFile(QStringList failedFiles)
|
|||
}
|
||||
}
|
||||
|
||||
foreach (QString file, failedFiles)
|
||||
foreach(QString file, failedFiles)
|
||||
files.removeAll(file);
|
||||
|
||||
for (int c = 1; c <= 4; c++) {
|
||||
|
|
|
|||
|
|
@ -238,9 +238,9 @@ void DiveCartesianAxis::updateTicks()
|
|||
}
|
||||
|
||||
Q_FOREACH(DiveTextItem * item, labels)
|
||||
item->setVisible(textVisibility);
|
||||
item->setVisible(textVisibility);
|
||||
Q_FOREACH(DiveLineItem * item, lines)
|
||||
item->setVisible(lineVisibility);
|
||||
item->setVisible(lineVisibility);
|
||||
}
|
||||
|
||||
void DiveCartesianAxis::animateChangeLine(const QLineF &newLine)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue