forked from qt-creator/qt-creator
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:
@@ -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*)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user