[vlc-commits] Qt: ConfigControl: rework layout insertion.

Francois Cartegnie git at videolan.org
Tue Mar 27 16:53:36 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar 26 21:46:39 2012 +0200| [2e02fbfcb788b433eeb6536503ced22f16abd5e0] | committer: Francois Cartegnie

Qt: ConfigControl: rework layout insertion.

Moving layout insertion outside of the constructors.
We no longer need constructor for creating a QWidget,
and we did not need at all to create a widget as a sublayout
is sufficient.
Removes many constructors and conditional code. gross -100 lines.

Also fixes an IntegerRangeConfigControl declaration which definition
was on IntegerRangeSliderConfigControl.

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

 modules/gui/qt4/components/open_panels.cpp         |    6 +-
 modules/gui/qt4/components/preferences_widgets.cpp |  454 ++++++++------------
 modules/gui/qt4/components/preferences_widgets.hpp |  104 ++---
 modules/gui/qt4/components/simple_preferences.cpp  |   10 +-
 4 files changed, 237 insertions(+), 337 deletions(-)

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


More information about the vlc-commits mailing list