Commit 010060de authored by Alessandro Portale's avatar Alessandro Portale

QtSupport: Remove right and bottom margin in GettingStartedWelcomePage

Make use of the right and bottom space. Also, this moves the scrollbars
to the border, which looks more conventional (and which was the case in
welcomescreen1).

Change-Id: Ib3553c588f0c24bbff8afeead1a3e69d4d77a00f
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 6c8b1e26
......@@ -591,7 +591,7 @@ public:
m_searcher = searchBox->m_lineEdit;
auto vbox = new QVBoxLayout(this);
vbox->setContentsMargins(30, 27, 20, 20);
vbox->setContentsMargins(30, 27, 0, 0);
if (m_isExamples) {
m_searcher->setPlaceholderText(tr("Search in Examples..."));
......@@ -631,7 +631,7 @@ public:
int bestColumnCount() const
{
return qMax(1, (width() - 30) / (itemWidth + itemGap));
return qMax(1, width() / (itemWidth + itemGap));
}
void resizeEvent(QResizeEvent *ev) final
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment