Add ResizingStackedWidget
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 21 Aug 2009 21:57:15 +0000 (23:57 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 21 Aug 2009 22:13:44 +0000 (00:13 +0200)
commit96f84c21f30180cc52471715d2e2d3b3ede906a4
tree4ee2a574ac528f97bbac241a67c817660f45ffb7
parent57c08c48e867edf38a9ce0547719cbd1b839952d
Add ResizingStackedWidget

This extends QStackedWidget by adding a dynamic sizeHint that only depends on the
currently selected page. Geometry is updated on page change. Use this widget if you want
a stacked container that dynamically adapts to the size of the visible page only rather than
caring for all the pages. Note that pages should have QSizePolicy::Ignore for this to work properly.
src/uisupport/resizingstackedwidget.cpp [new file with mode: 0644]
src/uisupport/resizingstackedwidget.h [new file with mode: 0644]