Proper include, and layout fix.

This commit is contained in:
Teo Mrnjavac 2014-06-12 10:56:13 +02:00
parent 347115c1bc
commit de93d4eabb
2 changed files with 34 additions and 1 deletions

View File

@ -20,7 +20,7 @@
#include "ViewManager.h"
#include "QBoxLayout"
#include <QBoxLayout>
CalamaresWindow::CalamaresWindow( QWidget* parent )
: QWidget( parent )

View File

@ -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()
{