mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
GCS/welcome: Cleaner welcome page.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@364 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
1b0358cab3
commit
cc7c7f8a24
@ -83,7 +83,7 @@ WelcomeMode::WelcomeMode() :
|
|||||||
QVBoxLayout *l = new QVBoxLayout(m_d->m_widget);
|
QVBoxLayout *l = new QVBoxLayout(m_d->m_widget);
|
||||||
l->setMargin(0);
|
l->setMargin(0);
|
||||||
l->setSpacing(0);
|
l->setSpacing(0);
|
||||||
l->addWidget(new Utils::StyledBar(m_d->m_widget));
|
// l->addWidget(new Utils::StyledBar(m_d->m_widget));
|
||||||
m_d->m_welcomePage = new QWidget(m_d->m_widget);
|
m_d->m_welcomePage = new QWidget(m_d->m_widget);
|
||||||
m_d->ui.setupUi(m_d->m_welcomePage);
|
m_d->ui.setupUi(m_d->m_welcomePage);
|
||||||
m_d->ui.helpUsLabel->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
m_d->ui.helpUsLabel->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||||
@ -163,7 +163,7 @@ void WelcomeMode::initPlugins()
|
|||||||
btn->setAutoExclusive(true);
|
btn->setAutoExclusive(true);
|
||||||
connect (btn, SIGNAL(clicked()), SLOT(showClickedPage()));
|
connect (btn, SIGNAL(clicked()), SLOT(showClickedPage()));
|
||||||
m_d->ui.stackedWidget->addWidget(plugin->page());
|
m_d->ui.stackedWidget->addWidget(plugin->page());
|
||||||
m_d->buttonLayout->addWidget(btn);
|
// m_d->buttonLayout->addWidget(btn);
|
||||||
m_d->buttonMap.insert(btn, plugin->page());
|
m_d->buttonMap.insert(btn, plugin->page());
|
||||||
}
|
}
|
||||||
m_d->buttonLayout->addSpacing(5);
|
m_d->buttonLayout->addSpacing(5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user