WelcomeMode: Remove screenDependHeightDistance()

That function always returns 16.

Change-Id: I65cb0c62c5e553791f25e964de9eaf23a0f65687
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2017-03-24 15:07:49 +01:00
parent 5f28650c23
commit 3729500740
4 changed files with 7 additions and 18 deletions

View File

@@ -208,12 +208,10 @@ public:
vbox->setSpacing(0);
vbox->setContentsMargins(0, 27, 0, 0);
int sd = IWelcomePage::screenDependHeightDistance();
{
auto l = m_pluginButtons = new QVBoxLayout;
l->setContentsMargins(lrPadding, 0, lrPadding, 0);
l->setSpacing(sd + 3);
l->setSpacing(19);
vbox->addItem(l);
vbox->addSpacing(62);
}
@@ -221,7 +219,7 @@ public:
{
auto l = new QVBoxLayout;
l->setContentsMargins(lrPadding, 0, lrPadding, 0);
l->setSpacing(sd - 8);
l->setSpacing(8);
auto newLabel = new QLabel(tr("New to Qt?"), this);
newLabel->setFont(sizedFont(18, this));