From 4c9a5d50885c78a60fdffb45547ad2e52d1cd4b3 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Sat, 16 Apr 2016 22:31:19 +0200 Subject: [PATCH] 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 --- src/plugins/debugger/debuggermainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp index 0b523eb40fa..c8fc6ee3306 100644 --- a/src/plugins/debugger/debuggermainwindow.cpp +++ b/src/plugins/debugger/debuggermainwindow.cpp @@ -158,7 +158,7 @@ void DebuggerMainWindow::finalizeSetup() hbox->addWidget(m_perspectiveChooser); hbox->addWidget(m_controlsStackWidget); hbox->addWidget(m_statusLabel); - hbox->addStretch(); + hbox->addStretch(1); hbox->addWidget(new Utils::StyledSeparator); hbox->addWidget(viewButton);