12static inline void rec_set_visible(
const QLayout& layout,
bool visible ) {
13 for (
int i = 0; i < layout.count(); ++i ) {
14 if ( QWidget* w = layout.itemAt( i )->widget() )
15 w->setVisible( visible );
16 else if ( QLayout* l = layout.itemAt( i )->layout() )
17 rec_set_visible( *l, visible );