From 99aea2bba368eb2fea057af36dbc28904938ac0b Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 21 Feb 2024 21:00:03 +0100 Subject: [PATCH] rename member var --- GUI/View/Views/InstrumentView.cpp | 8 ++++---- GUI/View/Views/InstrumentView.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/GUI/View/Views/InstrumentView.cpp b/GUI/View/Views/InstrumentView.cpp index 72751873c2e..295a390fb1c 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 47832162d6b..ee4193b8320 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; }; -- GitLab