diff --git a/GUI/View/Views/InstrumentView.cpp b/GUI/View/Views/InstrumentView.cpp index 72751873c2e43293bf928002680487fcfbbd136e..295a390fb1cfd79d518e5c4653f3e550d5716ab2 100644 --- a/GUI/View/Views/InstrumentView.cpp +++ b/GUI/View/Views/InstrumentView.cpp @@ -32,7 +32,7 @@ #include <iostream> InstrumentView::InstrumentView() - : m_listing(new InstrumentsQListView) + : m_qlistview(new InstrumentsQListView) , m_scroll_area(new QScrollArea) { auto* layout = new QVBoxLayout(this); @@ -57,7 +57,7 @@ InstrumentView::InstrumentView() // Left margin: instrument list - hLayout->addWidget(m_listing); + hLayout->addWidget(m_qlistview); // Large widget: current instrument @@ -100,7 +100,7 @@ void InstrumentView::createWidgetsForCurrentInstrument() auto* nameEdit = new QLineEdit(g); nameEdit->setText(currentInstrument->instrumentName()); - connect(nameEdit, &QLineEdit::textEdited, [this] { m_listing->repaint(); }); + connect(nameEdit, &QLineEdit::textEdited, [this] { m_qlistview->repaint(); }); formLayout->addRow("Name:", nameEdit); auto* descriptionEdit = new QTextEdit(g); @@ -109,7 +109,7 @@ void InstrumentView::createWidgetsForCurrentInstrument() descriptionEdit->setAcceptRichText(false); descriptionEdit->setTabChangesFocus(true); descriptionEdit->setPlainText(currentInstrument->description()); - connect(descriptionEdit, &QTextEdit::textChanged, [this] { m_listing->repaint(); }); + connect(descriptionEdit, &QTextEdit::textChanged, [this] { m_qlistview->repaint(); }); formLayout->addRow("Description:", descriptionEdit); //... All remaining content depends on instrument type diff --git a/GUI/View/Views/InstrumentView.h b/GUI/View/Views/InstrumentView.h index 47832162d6b280adb982ee995a900d585bdeea78..ee4193b83203b4bf0f0c9b537b257afc05022084 100644 --- a/GUI/View/Views/InstrumentView.h +++ b/GUI/View/Views/InstrumentView.h @@ -33,7 +33,7 @@ private slots: private: void createWidgetsForCurrentInstrument(); - InstrumentsQListView* m_listing; + InstrumentsQListView* m_qlistview; QScrollArea* m_scroll_area; };