diff --git a/GUI/View/Instrument/InstrumentView.cpp b/GUI/View/Instrument/InstrumentView.cpp index f3b60eeb8275ea73c6dcfa9869fb3aa17c926a3e..88a8e950fed2aef33593c3fb0e8f55265da3d01c 100644 --- a/GUI/View/Instrument/InstrumentView.cpp +++ b/GUI/View/Instrument/InstrumentView.cpp @@ -28,9 +28,8 @@ #include <QTextEdit> #include <QWidgetAction> -InstrumentView::InstrumentView(QWidget* parent) - : QWidget(parent) - , m_listing(new InstrumentListing(gDoc.get())) +InstrumentView::InstrumentView() + : m_listing(new InstrumentListing(gDoc.get())) , m_scrollArea(new QScrollArea) { auto* layout = new QVBoxLayout(this); diff --git a/GUI/View/Instrument/InstrumentView.h b/GUI/View/Instrument/InstrumentView.h index c15cd4b69f5d5829830e0bcc91ae0efb57c53a5e..fe2383f9294ed66787fc2d1aa39e08fe2750abf7 100644 --- a/GUI/View/Instrument/InstrumentView.h +++ b/GUI/View/Instrument/InstrumentView.h @@ -28,7 +28,7 @@ class ProjectDocument; class InstrumentView : public QWidget { Q_OBJECT public: - InstrumentView(QWidget* parent); + InstrumentView(); private: void showEvent(QShowEvent*) override; diff --git a/GUI/View/Main/MainWindow.cpp b/GUI/View/Main/MainWindow.cpp index 3e66ec665de3e21ea7ed8e9645d0cbf308a5a6c8..7820003ea2e7282cf9a881b2ba887c4e48506c83 100644 --- a/GUI/View/Main/MainWindow.cpp +++ b/GUI/View/Main/MainWindow.cpp @@ -225,7 +225,7 @@ void MainWindow::initViews() resetView(GUI::ID::ViewId::Projects, m_projectsView); if (gDoc) { - m_instrumentView = new InstrumentView(this); + m_instrumentView = new InstrumentView; m_sampleView = new SampleView(this, gDoc.get()); m_importDataView = new DataView(this, gDoc.get()); m_simulationView = new SimulationView(this, gDoc.get());