Debugger: Fix "jumping" status label

There are two layout stretches with equal stretch factors fighting
against each other. That makes the status label which is positioned
between the stretches jump around with changing content length.

This change increases the factor of the last stretch, which causes the
label position to stay constant.

Change-Id: I4e98d8b1fd6876f707911d1e90fa90165c8c2ff1
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2016-04-16 22:31:19 +02:00
parent 9a35b121ee
commit 4c9a5d5088

View File

@@ -158,7 +158,7 @@ void DebuggerMainWindow::finalizeSetup()
hbox->addWidget(m_perspectiveChooser); hbox->addWidget(m_perspectiveChooser);
hbox->addWidget(m_controlsStackWidget); hbox->addWidget(m_controlsStackWidget);
hbox->addWidget(m_statusLabel); hbox->addWidget(m_statusLabel);
hbox->addStretch(); hbox->addStretch(1);
hbox->addWidget(new Utils::StyledSeparator); hbox->addWidget(new Utils::StyledSeparator);
hbox->addWidget(viewButton); hbox->addWidget(viewButton);