WelcomePage: adding a ScrollArea around the welcome page

This allows proper scrolling if the Qt Creator window is too small.

Change-Id: I1053a9d6b258fc8798b932cc306eb23b76269fad
Reviewed-by: Virva Auvinen <virva.auvinen@nokia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
Thomas Hartmann
2012-02-01 14:54:45 +01:00
parent 821eab6c52
commit b88c0de6f1

View File

@@ -153,10 +153,13 @@ WelcomeMode::WelcomeMode() :
QVBoxLayout *layout = new QVBoxLayout;
layout->setMargin(0);
layout->setSpacing(0);
// layout->addWidget(new Utils::StyledBar);
layout->addWidget(m_welcomePage);
m_modeWidget->setLayout(layout);
QScrollArea *scrollArea = new QScrollArea(m_modeWidget);
layout->addWidget(scrollArea);
scrollArea->setWidget(m_welcomePage);
scrollArea->setWidgetResizable(true);
m_welcomePage->setMinimumWidth(960);
PluginManager *pluginManager = PluginManager::instance();
connect(pluginManager, SIGNAL(objectAdded(QObject*)), SLOT(welcomePluginAdded(QObject*)));