summaryrefslogtreecommitdiff
path: root/src/plugins/welcome
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-06-29 12:17:52 +0200
committerEike Ziller <eike.ziller@nokia.com>2011-06-29 12:20:20 +0200
commit42288b18f416ea72a88e9a81ef441de629897271 (patch)
tree3bebd152c52c4b06cdeb3a334be4f9d196cfef6b /src/plugins/welcome
parent11d4cbc141c370e3551df99585b8631ebe8bc8d5 (diff)
downloadqt-creator-42288b18f416ea72a88e9a81ef441de629897271.tar.gz
Fix upper bar in welcome mode.
Change-Id: I83c5a7a0dcb5dab7cd428c6131b12abb140829b2 Reviewed-on: http://codereview.qt.nokia.com/889 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r--src/plugins/welcome/welcomeplugin.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp
index 344eb5b11d..2c6e2b6e6e 100644
--- a/src/plugins/welcome/welcomeplugin.cpp
+++ b/src/plugins/welcome/welcomeplugin.cpp
@@ -118,7 +118,7 @@ private slots:
void modeChanged(Core::IMode*);
private:
- QScrollArea *m_scrollArea;
+ QWidget *m_modeWidget;
QDeclarativeView *m_welcomePage;
QHBoxLayout * buttonLayout;
QList<QObject*> m_pluginList;
@@ -140,10 +140,13 @@ WelcomeMode::WelcomeMode() :
m_welcomePage = new QDeclarativeView;
m_welcomePage->setResizeMode(QDeclarativeView::SizeRootObjectToView);
- m_scrollArea = new QScrollArea;
- m_scrollArea->setFrameStyle(QFrame::NoFrame|QFrame::Plain);
- m_scrollArea->setWidget(m_welcomePage);
- m_scrollArea->setWidgetResizable(true);
+ m_modeWidget = new QWidget;
+ QVBoxLayout *layout = new QVBoxLayout;
+ layout->setMargin(0);
+ layout->setSpacing(0);
+ layout->addWidget(new Utils::StyledBar);
+ layout->addWidget(m_welcomePage);
+ m_modeWidget->setLayout(layout);
PluginManager *pluginManager = PluginManager::instance();
connect(pluginManager, SIGNAL(objectAdded(QObject*)), SLOT(welcomePluginAdded(QObject*)));
@@ -151,14 +154,14 @@ WelcomeMode::WelcomeMode() :
Core::ModeManager *modeManager = Core::ICore::instance()->modeManager();
connect(modeManager, SIGNAL(currentModeChanged(Core::IMode*)), SLOT(modeChanged(Core::IMode*)));
- setWidget(m_scrollArea);
+ setWidget(m_modeWidget);
}
WelcomeMode::~WelcomeMode()
{
QSettings *settings = Core::ICore::instance()->settings();
settings->setValue(QLatin1String(currentPageSettingsKeyC), activePlugin());
- delete m_scrollArea;
+ delete m_modeWidget;
}
bool sortFunction(Utils::IWelcomePage * a, Utils::IWelcomePage *b)