From 74a4635ed324b13a3db230474d07fa08a4079b3f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 4 Jun 2009 11:50:08 +0200 Subject: [PATCH] SideBarWidget: new addContentLayout() method Added addContentLayout(QLayout *) method to SideBarWidget in order to allow subclasses to add whole layouts as well. Signed-off-by: Tobias Doerffel --- include/side_bar_widget.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/side_bar_widget.h b/include/side_bar_widget.h index dd9dfe536..ae1cfc4fd 100644 --- a/include/side_bar_widget.h +++ b/include/side_bar_widget.h @@ -1,7 +1,7 @@ /* * side_bar_widget.h - base-class for all side-bar-widgets * - * Copyright (c) 2004-2007 Tobias Doerffel + * Copyright (c) 2004-2009 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -59,11 +59,17 @@ protected: { return( m_contents ); } + inline void addContentWidget( QWidget * _w ) { m_layout->addWidget( _w ); } + inline void addContentLayout( QLayout * _l ) + { + m_layout->addLayout( _l ); + } + private: QWidget * m_contents;