PianoView: use layout for flexible widget size
Use a vertical box layout for PianoView and and track resize events in order to keep scrollbar range up to date. This way PianoView's size is not fixed anymore and the PianoView widget can be placed inside other layouts without any restrictions. Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
@@ -83,6 +83,7 @@ protected:
|
||||
virtual void mouseReleaseEvent( QMouseEvent * me );
|
||||
virtual void mouseMoveEvent( QMouseEvent * me );
|
||||
virtual void focusOutEvent( QFocusEvent * _fe );
|
||||
virtual void resizeEvent( QResizeEvent * _event );
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user