Skip to content
Snippets Groups Projects
Commit 3edf0e32 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

clang-format

parent cdaeabf4
No related branches found
No related tags found
1 merge request!2062simplify code for collapsible groupboxes; make instrument view more compact
Pipeline #117535 passed
......@@ -41,15 +41,14 @@ InstrumentView::InstrumentView(QWidget* parent, ProjectDocument* document)
m_instrumentListView = new InstrumentListView(document, this);
m_instrumentListView->setVisible(!document->singleInstrumentMode());
connect(m_document, &ProjectDocument::singleInstrumentModeChanged,
[this]() {
m_instrumentListView->setVisible(!m_document->singleInstrumentMode()); });
[this]() { m_instrumentListView->setVisible(!m_document->singleInstrumentMode()); });
connect(m_instrumentListView, &InstrumentListView::instrumentSelected, this,
&InstrumentView::createWidgetsForCurrentInstrument);
// Large widget: current instrument
m_scrollArea = new QScrollArea(this);
m_scrollArea->setWidgetResizable(true);
//m_scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
// m_scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
// Top toolbar with action buttons "new ...instrument" etc
auto* toolbar = new StyledToolbar(this);
......
......@@ -76,8 +76,8 @@ CoreAndShellForm::CoreAndShellForm(QWidget* parent, CoreAndShellItem* coreShellI
connect(core.formfactorCombo, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
&CoreAndShellForm::onCoreComboChanged);
core.layouter->addRow("Form factor:", core.formfactorCombo);
core.collapser = GroupBoxCollapser::installIntoGroupBox2(coreParticleGroup,
coreShellItem->expandCore);
core.collapser =
GroupBoxCollapser::installIntoGroupBox2(coreParticleGroup, coreShellItem->expandCore);
auto* showInRealspaceAction =
ActionFactory::createShowInRealspaceAction(this, "core particle");
......
......@@ -48,8 +48,8 @@ MesocrystalForm::MesocrystalForm(QWidget* parent, MesocrystalItem* mesocrystalIt
m_rowOfBasisTypeCombo = layouter.addRow("Basis type", m_basisCombo);
createBasisWidgets();
auto* collapser = GroupBoxCollapser::installIntoGroupBox2(this,
mesocrystalItem->expandMesocrystal);
auto* collapser =
GroupBoxCollapser::installIntoGroupBox2(this, mesocrystalItem->expandMesocrystal);
// top right corner actions
// show in real space
......
......@@ -37,8 +37,7 @@ ParticleForm::ParticleForm(QWidget* parent, ParticleItem* particleItem, bool all
if (allowAbundance)
layouter.addValue(particleItem->abundance());
auto* collapser = GroupBoxCollapser::installIntoGroupBox2(this,
particleItem->expandParticle);
auto* collapser = GroupBoxCollapser::installIntoGroupBox2(this, particleItem->expandParticle);
// top right corner actions
// show in real space
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment