Qt: Reduce spacing between toolbar actions
This commit is contained in:
parent
b05207325d
commit
8dcd5cdd1d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue