Commit 78104e22 authored by LACROIX Romain's avatar LACROIX Romain
Browse files

Bugfix for gnomon issue number 254: the main window size can not be decreased vertically.

The call to dtkWidgetsMenuBar::setFixedHeight() is done by
dtkWidgetsMainWindow::resizeEvent().

It is thus not a **fixed** height we should set, but a normal not-fixed height / size.
parent d11a2181
Pipeline #132149 passed with stage
in 0 seconds
......@@ -1014,9 +1014,9 @@ void dtkWidgetsMenuBar::setStandalone(bool standalone)
void dtkWidgetsMenuBar::setFixedHeight(int h)
{
QFrame::setFixedHeight(h);
d->c->setFixedHeight(h);
QSize size { d->size, h };
QFrame::resize(size);
d->c->resize(size);
}
void dtkWidgetsMenuBar::setWidth(int width)
......
Supports Markdown
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