From 3585b14b98a45db2dd7a944f4b211111363e6e83 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sat, 13 Jul 2019 22:14:55 +0200 Subject: [PATCH] Instrument view: Add missing size hints Those are needed for the case when an instrument is being resized manually. --- include/InstrumentView.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/InstrumentView.h b/include/InstrumentView.h index 9c6081a77..06a1a0277 100644 --- a/include/InstrumentView.h +++ b/include/InstrumentView.h @@ -34,9 +34,12 @@ class InstrumentTrackWindow; 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 ); - virtual ~InstrumentView(); + ~InstrumentView() override; Instrument * model() { @@ -48,7 +51,7 @@ public: return( castModel() ); } - virtual void setModel( Model * _model, bool = false ); + void setModel( Model * _model, bool = false ) override; InstrumentTrackWindow * instrumentTrackWindow();