Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Oct 25, 2023
1 parent 98493ff commit 7c60469
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions avogadro/qtplugins/surfaces/surfacedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Avogadro::QtPlugins {

SurfaceDialog::SurfaceDialog(QWidget* parent_, Qt::WindowFlags f)
: QDialog(parent_, f), m_ui(new Ui::SurfaceDialog),
m_automaticResolution(true)
m_automaticResolution(true)
{
m_ui->setupUi(this);

Expand Down Expand Up @@ -68,7 +68,7 @@ void SurfaceDialog::propertyComboChanged(int n)
case 1: // Electrostatic Potential
m_ui->colormapCombo->setEnabled(true);
m_ui->modelCombo->setEnabled(true);
for (const auto &model: m_chargeModels)
for (const auto& model : m_chargeModels)
m_ui->modelCombo->addItem(model.first.c_str(), model.second.c_str());
}
}
Expand Down Expand Up @@ -169,7 +169,8 @@ void SurfaceDialog::setupBasis(int numElectrons, int numMOs, bool beta)
m_ui->spinCombo->setVisible(true);
m_ui->spinCombo->setEnabled(true);
if (m_ui->surfaceCombo->findData(Surfaces::Type::SpinDensity) == -1)
m_ui->surfaceCombo->addItem(tr("Spin Density"), Surfaces::Type::SpinDensity);
m_ui->surfaceCombo->addItem(tr("Spin Density"),
Surfaces::Type::SpinDensity);
} else {
auto pos = m_ui->surfaceCombo->findData(Surfaces::Type::SpinDensity);
if (pos != -1)
Expand Down Expand Up @@ -241,8 +242,8 @@ void SurfaceDialog::setupSteps(int stepCount)
}

void SurfaceDialog::setupModels(
const std::set<std::pair<std::string, std::string>> &chargeModels
) {
const std::set<std::pair<std::string, std::string>>& chargeModels)
{
m_chargeModels = chargeModels;
}

Expand All @@ -253,7 +254,8 @@ Surfaces::Type SurfaceDialog::surfaceType()

Surfaces::ColorProperty SurfaceDialog::colorProperty()
{
return static_cast<Surfaces::ColorProperty>(m_ui->propertyCombo->currentIndex());
return static_cast<Surfaces::ColorProperty>(
m_ui->propertyCombo->currentIndex());
}

QString SurfaceDialog::colorModel()
Expand Down Expand Up @@ -330,4 +332,4 @@ void SurfaceDialog::enableRecord()
m_ui->recordButton->setEnabled(true);
}

} // End namespace Avogadro
} // namespace Avogadro::QtPlugins

0 comments on commit 7c60469

Please sign in to comment.