Proper include, and layout fix.
This commit is contained in:
parent
347115c1bc
commit
de93d4eabb
@ -20,7 +20,7 @@
|
||||
|
||||
#include "ViewManager.h"
|
||||
|
||||
#include "QBoxLayout"
|
||||
#include <QBoxLayout>
|
||||
|
||||
CalamaresWindow::CalamaresWindow( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
|
@ -37,9 +37,14 @@ ViewManager::ViewManager( QObject* parent )
|
||||
{
|
||||
s_instance = this;
|
||||
QBoxLayout* mainLayout = new QVBoxLayout;
|
||||
mainLayout->setContentsMargins( 0, 0, 0, 0 );
|
||||
m_widget->setContentsMargins( 0, 0, 0, 0 );
|
||||
mainLayout->setMargin( 0 );
|
||||
mainLayout->setSpacing( 0 );
|
||||
m_widget->setLayout( mainLayout );
|
||||
|
||||
m_stack = new QStackedWidget( m_widget );
|
||||
m_stack->setContentsMargins( 0, 0, 0, 0 );
|
||||
mainLayout->addWidget( m_stack );
|
||||
|
||||
m_back = new QPushButton( tr( "&Back" ), m_widget );
|
||||
@ -66,6 +71,34 @@ ViewManager::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ViewManager::addPagePlugin( PagePlugin* plugin )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ViewManager::insertPage( AbstractPage* page )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ViewManager::setNext( AbstractPage* page )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ViewManager::removePage( AbstractPage* page )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ViewManager::next()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user