[vlc-commits] commit: Qt: make ground for proper main interface size management ( Jakob Leben )

git at videolan.org git at videolan.org
Sat Mar 27 23:51:37 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Sat Mar 27 22:24:50 2010 +0100| [9d9ffe9fba7946afcf6f20f1de9f6b6a3b644f37] | committer: Jakob Leben 

Qt: make ground for proper main interface size management

- Simplify switching between widgets in central stack: showTab() allows
switching only between two states - video state and playlist state - and
does everything needed according to circumstances

- Do not setMinimumWidth/Height/Size() on main interface, because it
inhibits children sizeHint() evaluation, thus preventing interface
self-adjustment when controls are added/removed or shown/hidden.

- Subclass QStackedWidget so it's minimumSizeHint() matches exactly
the one of the currentWidget(), and not the sum of all children.

- Suggest compact mode implementation (commented out for now):
setSizeConstraint( QLayout::SetFixedSize ) on main interface layout.
This automatically keeps and adjusts fixed size in respect to
sizeHint() of children.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d9ffe9fba7946afcf6f20f1de9f6b6a3b644f37
---

 modules/gui/qt4/main_interface.cpp |  133 ++++++++++++++++--------------------
 modules/gui/qt4/main_interface.hpp |   26 +++++--
 2 files changed, 78 insertions(+), 81 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=9d9ffe9fba7946afcf6f20f1de9f6b6a3b644f37


More information about the vlc-commits mailing list