Split InstrumentView into itself and InstrumentView250
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
virtual PluginView * instantiateView( QWidget * _parent )
|
||||
{
|
||||
return new InstrumentView( this, _parent );
|
||||
return new InstrumentView250( this, _parent );
|
||||
}
|
||||
} ;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user