23 const int size = style()->pixelMetric(QStyle::PM_ToolBarIconSize);
24 setIconSize(QSize(size, size));
25 setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
26 setContentsMargins(0, 0, 0, 0);
31 addWidget(
new QLabel(
" "));
33 addWidget(
new QLabel(
" "));
41 space.fill(
' ', width);
42 addWidget(
new QLabel(space));
47 auto* empty =
new QWidget();
48 empty->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);