forked from qt-creator/qt-creator
Welcome: Also hide separator lines when collapsing top- and side areas
This moves the separator lines into the respective areas, so that the lines also disappear when their area collapes. Looks cleaner (for pixel obsessed people like me). Change-Id: I314c2c462767666638eae57087606f2a6ca4ae4a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -156,12 +156,16 @@ public:
|
|||||||
|
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
|
|
||||||
Row {
|
Column {
|
||||||
ideIconLabel,
|
Row {
|
||||||
welcomeLabel,
|
ideIconLabel,
|
||||||
st,
|
welcomeLabel,
|
||||||
spacing(ExVPaddingGapXl),
|
st,
|
||||||
customMargin({HPaddingM, VPaddingM, HPaddingM, VPaddingM}),
|
spacing(ExVPaddingGapXl),
|
||||||
|
customMargin({HPaddingM, VPaddingM, HPaddingM, VPaddingM}),
|
||||||
|
},
|
||||||
|
createRule(Qt::Horizontal),
|
||||||
|
noMargin(), spacing(0),
|
||||||
}.attachTo(this);
|
}.attachTo(this);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -182,7 +186,7 @@ public:
|
|||||||
|
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
|
|
||||||
Column mainLayout {
|
Column mainColumn {
|
||||||
spacing(0),
|
spacing(0),
|
||||||
customMargin({ExVPaddingGapXl, 0, ExVPaddingGapXl, 0}),
|
customMargin({ExVPaddingGapXl, 0, ExVPaddingGapXl, 0}),
|
||||||
};
|
};
|
||||||
@@ -224,8 +228,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
essentials.attachTo(m_essentials);
|
essentials.attachTo(m_essentials);
|
||||||
mainLayout.addItem(m_essentials);
|
mainColumn.addItem(m_essentials);
|
||||||
mainLayout.addItem(st);
|
mainColumn.addItem(st);
|
||||||
|
|
||||||
{
|
{
|
||||||
auto label = new Label(Tr::tr("Explore more"), Label::Secondary);
|
auto label = new Label(Tr::tr("Explore more"), Label::Secondary);
|
||||||
@@ -263,10 +267,17 @@ public:
|
|||||||
|
|
||||||
m_links = new QWidget;
|
m_links = new QWidget;
|
||||||
linksLayout.attachTo(m_links);
|
linksLayout.attachTo(m_links);
|
||||||
mainLayout.addItem(m_links);
|
mainColumn.addItem(m_links);
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget *mainWidget = mainLayout.emerge();
|
QWidget *mainWidget = new QWidget;
|
||||||
|
|
||||||
|
Row {
|
||||||
|
mainColumn,
|
||||||
|
createRule(Qt::Vertical),
|
||||||
|
noMargin(), spacing(0),
|
||||||
|
}.attachTo(mainWidget);
|
||||||
|
|
||||||
setWidget(mainWidget);
|
setWidget(mainWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -327,10 +338,8 @@ WelcomeMode::WelcomeMode()
|
|||||||
Column {
|
Column {
|
||||||
new StyledBar,
|
new StyledBar,
|
||||||
m_topArea,
|
m_topArea,
|
||||||
createRule(Qt::Horizontal),
|
|
||||||
Row {
|
Row {
|
||||||
m_sideArea,
|
m_sideArea,
|
||||||
createRule(Qt::Vertical),
|
|
||||||
m_pageStack,
|
m_pageStack,
|
||||||
},
|
},
|
||||||
noMargin(),
|
noMargin(),
|
||||||
|
Reference in New Issue
Block a user