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

rename member var

parent f50d6cb0
No related branches found
No related tags found
1 merge request!2387unify code for list views
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <iostream> #include <iostream>
InstrumentView::InstrumentView() InstrumentView::InstrumentView()
: m_listing(new InstrumentsQListView) : m_qlistview(new InstrumentsQListView)
, m_scroll_area(new QScrollArea) , m_scroll_area(new QScrollArea)
{ {
auto* layout = new QVBoxLayout(this); auto* layout = new QVBoxLayout(this);
...@@ -57,7 +57,7 @@ InstrumentView::InstrumentView() ...@@ -57,7 +57,7 @@ InstrumentView::InstrumentView()
// Left margin: instrument list // Left margin: instrument list
hLayout->addWidget(m_listing); hLayout->addWidget(m_qlistview);
// Large widget: current instrument // Large widget: current instrument
...@@ -100,7 +100,7 @@ void InstrumentView::createWidgetsForCurrentInstrument() ...@@ -100,7 +100,7 @@ void InstrumentView::createWidgetsForCurrentInstrument()
auto* nameEdit = new QLineEdit(g); auto* nameEdit = new QLineEdit(g);
nameEdit->setText(currentInstrument->instrumentName()); nameEdit->setText(currentInstrument->instrumentName());
connect(nameEdit, &QLineEdit::textEdited, [this] { m_listing->repaint(); }); connect(nameEdit, &QLineEdit::textEdited, [this] { m_qlistview->repaint(); });
formLayout->addRow("Name:", nameEdit); formLayout->addRow("Name:", nameEdit);
auto* descriptionEdit = new QTextEdit(g); auto* descriptionEdit = new QTextEdit(g);
...@@ -109,7 +109,7 @@ void InstrumentView::createWidgetsForCurrentInstrument() ...@@ -109,7 +109,7 @@ void InstrumentView::createWidgetsForCurrentInstrument()
descriptionEdit->setAcceptRichText(false); descriptionEdit->setAcceptRichText(false);
descriptionEdit->setTabChangesFocus(true); descriptionEdit->setTabChangesFocus(true);
descriptionEdit->setPlainText(currentInstrument->description()); descriptionEdit->setPlainText(currentInstrument->description());
connect(descriptionEdit, &QTextEdit::textChanged, [this] { m_listing->repaint(); }); connect(descriptionEdit, &QTextEdit::textChanged, [this] { m_qlistview->repaint(); });
formLayout->addRow("Description:", descriptionEdit); formLayout->addRow("Description:", descriptionEdit);
//... All remaining content depends on instrument type //... All remaining content depends on instrument type
......
...@@ -33,7 +33,7 @@ private slots: ...@@ -33,7 +33,7 @@ private slots:
private: private:
void createWidgetsForCurrentInstrument(); void createWidgetsForCurrentInstrument();
InstrumentsQListView* m_listing; InstrumentsQListView* m_qlistview;
QScrollArea* m_scroll_area; QScrollArea* m_scroll_area;
}; };
......
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