diff options
| author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-02-01 14:54:45 +0100 |
|---|---|---|
| committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-02-07 16:55:51 +0100 |
| commit | b88c0de6f16f4fda78bac33e98341be44ecbe9c8 (patch) | |
| tree | 4bb00a5acb76195557eb3715fc43764b8d320e20 /src | |
| parent | 821eab6c52d5587b233a409f3086e223c7a270b2 (diff) | |
| download | qt-creator-b88c0de6f16f4fda78bac33e98341be44ecbe9c8.tar.gz | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 8a6ac26236..106bb22a89 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*))); |
