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

InstrListing rm unused parent, flag

parent 9c30d428
No related branches found
No related tags found
1 merge request!2072cleanup sample viewer code; m redundant 'Create sample' button (#778)
......@@ -21,9 +21,8 @@
#include <QMessageBox>
#include <QVBoxLayout>
InstrumentListing::InstrumentListing(ProjectDocument* document, QWidget* parent, Qt::WindowFlags f)
: QWidget(parent, f)
, m_document(document)
InstrumentListing::InstrumentListing(ProjectDocument* document)
: m_document(document)
{
m_instrumentLibrary.load();
......@@ -38,7 +37,6 @@ InstrumentListing::InstrumentListing(ProjectDocument* document, QWidget* parent,
m_listView->setMaximumWidth(200);
m_listView->setSelectionMode(QAbstractItemView::SingleSelection);
m_listView->setObjectName("listView");
layout->addWidget(m_listView);
m_model = new InstrumentListModel(this, m_document->multiNotifier());
......
......@@ -27,8 +27,7 @@ class ProjectDocument;
class InstrumentListing : public QWidget {
Q_OBJECT
public:
InstrumentListing(ProjectDocument* document, QWidget* parent = nullptr,
Qt::WindowFlags f = Qt::WindowFlags());
InstrumentListing(ProjectDocument* document);
~InstrumentListing();
QSize sizeHint() const override;
......
......@@ -47,7 +47,7 @@ InstrumentView::InstrumentView(QWidget* parent, ProjectDocument* document)
layout->addLayout(hLayout);
// Left margin: instrument list
m_listing = new InstrumentListing(document, this);
m_listing = new InstrumentListing(document);
hLayout->addWidget(m_listing);
m_listing->setVisible(!document->singleInstrumentMode());
......
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