forked from qt-creator/qt-creator
Layouting: Handle attach types via setter
Change-Id: I862f5cd109db3582b4f029787ec0cded2da39ce6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -796,8 +796,13 @@ ListModel *SectionedGridView::addSection(const Section §ion, const QList<Lis
|
||||
}
|
||||
connect(seeAllLink, &QLabel::linkActivated, this, [this, section] { zoomInSection(section); });
|
||||
using namespace Layouting;
|
||||
QWidget *sectionLabel = Row{section.name, createSeparator(this), seeAllLink, Space(HSpacing)}
|
||||
.emerge(Layouting::WithoutMargins);
|
||||
QWidget *sectionLabel = Row {
|
||||
section.name,
|
||||
createSeparator(this),
|
||||
seeAllLink,
|
||||
Space(HSpacing),
|
||||
noMargin
|
||||
}.emerge();
|
||||
m_sectionLabels.append(sectionLabel);
|
||||
sectionLabel->setContentsMargins(0, ItemGap, 0, 0);
|
||||
sectionLabel->setFont(Core::WelcomePageHelpers::brandFont());
|
||||
@@ -849,8 +854,13 @@ void SectionedGridView::zoomInSection(const Section §ion)
|
||||
setCurrentIndex(0);
|
||||
});
|
||||
using namespace Layouting;
|
||||
QWidget *sectionLabel = Row{section.name, createSeparator(this), backLink, Space(HSpacing)}
|
||||
.emerge(Layouting::WithoutMargins);
|
||||
QWidget *sectionLabel = Row {
|
||||
section.name,
|
||||
createSeparator(this),
|
||||
backLink,
|
||||
Space(HSpacing),
|
||||
noMargin
|
||||
}.emerge();
|
||||
sectionLabel->setContentsMargins(0, ItemGap, 0, 0);
|
||||
sectionLabel->setFont(Core::WelcomePageHelpers::brandFont());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user