MiniProjectTargetSelector: Work with no sidebar

Fix MiniProjectTargetSelector becoming too small when no sidebar is
displayed.

Task-number: QTCREATORBUG-9423
Change-Id: I40f9093f7217448c3b29a699aa8e07710127d608
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2013-05-31 17:50:07 +02:00
parent 34902ab6aa
commit d09f39931f

View File

@@ -779,7 +779,9 @@ void MiniProjectTargetSelector::doLayout(bool keepSize)
m_summaryLabel->move(0, summaryLabelY);
// Height to be aligned with side bar button
int alignedWithActionHeight = actionBar->height() - statusBar->height();
int alignedWithActionHeight = 210;
if (actionBar->isVisible())
alignedWithActionHeight = actionBar->height() - statusBar->height();
int bottomMargin = 9;
int totalHeight = 0;