Qt: Reduce spacing between toolbar actions

This commit is contained in:
Léo Lam 2017-09-19 22:26:03 +02:00
parent b05207325d
commit 8dcd5cdd1d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void ToolBar::MakeActions()
std::transform(items.begin(), items.end(), std::back_inserter(widths),
[](QWidget* item) { return item->sizeHint().width(); });
const int min_width = *std::max_element(widths.begin(), widths.end());
const int min_width = *std::max_element(widths.begin(), widths.end()) * 0.85;
for (QWidget* widget : items)
widget->setMinimumWidth(min_width);
}