Commit adabd6a1 authored by Halla Rempt's avatar Halla Rempt

Make it possible to make the toolbox one icon wide

Plastique is nasty and gives a different minimum width sizehint than
oxygent, so if we allow text to be elided, make sure we allow the
titlebar to shrink to one button wide as well.
parent 5585529b
......@@ -148,7 +148,12 @@ QSize KoDockWidgetTitleBar::sizeHint() const
return QSize(d->preCollapsedWidth, height);
}
else {
return QSize(buttonWidth /*+ height*/ + 2*mw + 2*fw + titleWidth, height);
if (d->textVisibilityMode == FullTextAlwaysVisible) {
return QSize(buttonWidth /*+ height*/ + 2*mw + 2*fw + titleWidth, height);
}
else {
return QSize(buttonWidth, height);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment