diff --git a/GUI/View/Instrument/InstrumentView.cpp b/GUI/View/Instrument/InstrumentView.cpp index f23b7bc162f58acc508fbdb7a7eb38aff2d7cc74..dd194f33b44118d9e35804fe5638225c3e82ec72 100644 --- a/GUI/View/Instrument/InstrumentView.cpp +++ b/GUI/View/Instrument/InstrumentView.cpp @@ -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); diff --git a/GUI/View/SampleDesigner/CoreAndShellForm.cpp b/GUI/View/SampleDesigner/CoreAndShellForm.cpp index 02f3f216701a91a229d16fc1a825982895096e97..cd822a0ad21e62a0a565859a7ac5ab4fa1cc60de 100644 --- a/GUI/View/SampleDesigner/CoreAndShellForm.cpp +++ b/GUI/View/SampleDesigner/CoreAndShellForm.cpp @@ -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"); diff --git a/GUI/View/SampleDesigner/MesocrystalForm.cpp b/GUI/View/SampleDesigner/MesocrystalForm.cpp index 0a3eb69c1175302541d9cad018a4fbaab28d1e34..170b26efdb7d00ad58daeb01b5c074218cd037fb 100644 --- a/GUI/View/SampleDesigner/MesocrystalForm.cpp +++ b/GUI/View/SampleDesigner/MesocrystalForm.cpp @@ -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 diff --git a/GUI/View/SampleDesigner/ParticleForm.cpp b/GUI/View/SampleDesigner/ParticleForm.cpp index 08d84d7bcabff49fa68cb344295a9464739e4437..290f652c5636ed38f39216fd3f129cf9c8adefd0 100644 --- a/GUI/View/SampleDesigner/ParticleForm.cpp +++ b/GUI/View/SampleDesigner/ParticleForm.cpp @@ -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