From b88c0de6f16f4fda78bac33e98341be44ecbe9c8 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Wed, 1 Feb 2012 14:54:45 +0100 Subject: [PATCH] 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> --- src/plugins/welcome/welcomeplugin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 8a6ac262367..106bb22a89f 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -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*))); -- GitLab