Commit 0f944282 authored by Christophe Courtaut's avatar Christophe Courtaut
Browse files

Do not overlap medias, use a scrollbar

the container widget is back, because it was useful!!!
parent c13a5afa
......@@ -32,11 +32,13 @@ ListViewController::ListViewController( StackViewController* nav ) : m_nav( nav
m_title = new QString( "Media List" );
m_scrollArea = new QScrollArea();
m_layout = new QVBoxLayout();
m_container = new QWidget();
m_layout->setAlignment( Qt::AlignTop );
m_layout->setSpacing( 0 );
m_layout->setContentsMargins( 0, 0, 0, 0 );
m_scrollArea->setLayout( m_layout );
m_container->setLayout( m_layout );
m_scrollArea->setWidget( m_container );
m_scrollArea->setWidgetResizable( true );
m_scrollArea->setAcceptDrops( true );
......@@ -47,6 +49,7 @@ ListViewController::~ListViewController()
delete m_title;
delete m_scrollArea;
delete m_layout;
delete m_container;
}
// ViewController method implementation
......
......@@ -54,6 +54,7 @@ protected:
private:
QString* m_title;
QScrollArea* m_scrollArea;
QWidget* m_container;
StackViewController* m_nav;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment