Commit f3e7b9b1 authored by Jan Blackquill's avatar Jan Blackquill 🌈

[kstyle] Fix incorrect tools area space allocation

The tools area should allocate the top row of pixels of a window, not the bottom row of pixels of a window
parent c61a78b0
......@@ -943,7 +943,7 @@ namespace Breeze
painter->restore();
} else if (auto dialog = qobject_cast<const QDialog*>(widget)) {
auto margins = dialog->contentsMargins();
const_cast<QDialog*>(dialog)->setContentsMargins(margins.left(), margins.top(), margins.right(), qMax(margins.bottom(), 1));
const_cast<QDialog*>(dialog)->setContentsMargins(margins.left(), qMax(margins.top(), 1), margins.right(), margins.bottom());
painter->setPen(_helper->separatorColor(_toolsAreaManager->palette()));
painter->drawLine(widget->rect().topLeft(), widget->rect().topRight());
}
......
......@@ -65,7 +65,7 @@ namespace Breeze {
if (itemHeight == 0) {
auto win = const_cast<QMainWindow*>(window);
win->setContentsMargins(0, 0, 0, 1);
win->setContentsMargins(0, 1, 0, 0);
} else {
auto win = const_cast<QMainWindow*>(window);
win->setContentsMargins(0, 0, 0, 0);
......
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