Commit e856a47d authored by Laurent Montel's avatar Laurent Montel 😁

Fix draw arrow

parent d33b2a13
......@@ -332,10 +332,19 @@ void SplitterCollapser::paintEvent(QPaintEvent *)
QStyleOptionToolButton opt;
initStyleOption(&opt);
if (d->mDirection == LeftToRight) {
opt.rect.setLeft(-width());
if (d->isVertical()) {
if (d->mDirection == TopToBottom) {
opt.rect.setTop(-height());
} else {
opt.rect.setHeight(height()*2);
}
} else {
opt.rect.setWidth(width() * 2);
if (d->mDirection == LeftToRight) {
opt.rect.setLeft(-width());
} else {
opt.rect.setWidth(width() * 2);
}
}
painter.drawPrimitive(QStyle::PE_PanelButtonTool, opt);
......
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