1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

made the input wizard background transparent

This commit is contained in:
zedamota 2012-01-27 17:54:14 +00:00 committed by David Ankers
parent 3d896ffaf5
commit c5a2afcc2c
2 changed files with 5 additions and 2 deletions

View File

@ -107,7 +107,6 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) : ConfigTaskWidget(parent)
m_config->graphicsView->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
m_renderer = new QSvgRenderer();
QGraphicsScene *l_scene = m_config->graphicsView->scene();
m_config->graphicsView->setBackgroundBrush(QBrush(Utils::StyleHelper::baseColor()));
if (QFile::exists(":/configgadget/images/TX2.svg") && m_renderer->load(QString(":/configgadget/images/TX2.svg")) && m_renderer->isValid())
{
l_scene->clear(); // Deletes all items contained in the scene as well.

View File

@ -90,7 +90,11 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QGraphicsView" name="graphicsView"/>
<widget class="QGraphicsView" name="graphicsView">
<property name="styleSheet">
<string notr="true">background:transparent</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="checkBoxesLayout"/>