Skip to content

Commit

Permalink
ProjectExplorer: Allow more entries in the MiniProjectTargetSelector
Browse files Browse the repository at this point in the history
Make the maximum height dependent on the total window height, rather
than the height of the action bar.

Fixes: QTCREATORBUG-29580
Change-Id: Id2bd568febbb3e16cea05d9d54834a9c0b309ea1
Reviewed-by: Eike Ziller <[email protected]>
  • Loading branch information
ckandeler committed Sep 19, 2023
1 parent ea47e6c commit ef00a7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/plugins/projectexplorer/miniprojecttargetselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,13 +920,12 @@ void MiniProjectTargetSelector::doLayout(bool keepSize)
if (keepSize) {
heightWithoutKitArea = height() - oldSummaryLabelY + 1;
} else {
// Clamp the size of the listwidgets to be
// at least as high as the sidebar button
// and at most twice as high
// Clamp the size of the listwidgets to be at least as high as the sidebar button
// and at most half the height of the entire Qt Creator window.
heightWithoutKitArea = summaryLabelHeight
+ qBound(alignedWithActionHeight,
maxItemCount * 30 + bottomMargin + titleWidgetsHeight,
alignedWithActionHeight * 2);
Core::ICore::mainWindow()->height() / 2);
}

int titleY = summaryLabelY + summaryLabelHeight;
Expand Down

0 comments on commit ef00a7e

Please sign in to comment.