Commit b88c0de6 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

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: default avatarVirva Auvinen <virva.auvinen@nokia.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent 821eab6c
......@@ -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*)));
......
Markdown is supported
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