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:
Tobias Doerffel
2009-06-11 14:33:20 +02:00
parent 01a83deee7
commit d866015dc9
3 changed files with 37 additions and 13 deletions

View File

@@ -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: