Commit 1f972ee8 authored by luyikei's avatar luyikei

EffectStack: Remove a private variable Backend::IInput* m_input

parent f13df959
......@@ -40,8 +40,7 @@
EffectStack::EffectStack( Backend::IInput *input, QWidget *parent ):
QDialog( parent ),
m_ui( new Ui::EffectStack ),
m_input( input )
m_ui( new Ui::EffectStack )
{
m_ui->setupUi( this );
......@@ -62,8 +61,8 @@ EffectStack::EffectStack( Backend::IInput *input, QWidget *parent ):
//Add an empty instance widget.
m_stackedLayout->addWidget( new EffectInstanceWidget( this ) );
//Create instance widgets for already inserted effects
for ( int i = 0; i < m_input->filterCount(); ++i )
addEffectHelper( new EffectHelper( m_input->filter( i ) ) );
for ( int i = 0; i < input->filterCount(); ++i )
addEffectHelper( new EffectHelper( input->filter( i ) ) );
}
EffectStack::~EffectStack()
......
......@@ -64,7 +64,6 @@ class EffectStack : public QDialog
private:
Ui::EffectStack *m_ui;
EffectInstanceListModel *m_model;
Backend::IInput *m_input;
QStackedLayout *m_stackedLayout;
QHash<QString, EffectInstanceWidget*> m_instanceWidgets;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment