Split InstrumentView into itself and InstrumentView250

This commit is contained in:
Johannes Lorenz
2019-07-14 10:20:54 +02:00
parent 4f3ed9f9e1
commit a4df7a9765
47 changed files with 69 additions and 50 deletions

View File

@@ -68,7 +68,7 @@ public:
virtual PluginView * instantiateView( QWidget * _parent )
{
return new InstrumentView( this, _parent );
return new InstrumentView250( this, _parent );
}
} ;

View File

@@ -32,11 +32,9 @@
class InstrumentTrackWindow;
//! Instrument view with variable size
class LMMS_EXPORT InstrumentView : public PluginView
{
QSize sizeHint() const override { return QSize(250, 250); }
QSize minimumSizeHint() const override { return sizeHint(); }
public:
InstrumentView( Instrument * _instrument, QWidget * _parent );
~InstrumentView() override;
@@ -58,4 +56,18 @@ public:
} ;
//! Instrument view with fixed LMMS-default size
class LMMS_EXPORT InstrumentView250 : public InstrumentView
{
QSize sizeHint() const override { return QSize(250, 250); }
QSize minimumSizeHint() const override { return sizeHint(); }
public:
using InstrumentView::InstrumentView;
~InstrumentView250() override;
} ;
#endif