One pixel offset needed for Fitt
The panel would be one pixel above the bottom edge, which prevents us from using the invisible space beyond the panel. This makes the panel flush with the bottom edge.
This commit is contained in:
parent
e5b435f53d
commit
1c0f221ac5
@ -343,14 +343,14 @@ void PanelView::positionPanel()
|
|||||||
restore();
|
restore();
|
||||||
switch (m_alignment) {
|
switch (m_alignment) {
|
||||||
case Qt::AlignCenter:
|
case Qt::AlignCenter:
|
||||||
setPosition(QPoint(s->geometry().center().x(), s->geometry().bottom()) + QPoint(m_offset - size().width()/2, 0));
|
setPosition(QPoint(s->geometry().center().x(), s->geometry().bottom()) + QPoint(m_offset - size().width()/2, 1));
|
||||||
break;
|
break;
|
||||||
case Qt::AlignRight:
|
case Qt::AlignRight:
|
||||||
setPosition(s->geometry().bottomRight() - QPoint(0, height()) - QPoint(m_offset + size().width(), 0));
|
setPosition(s->geometry().bottomRight() - QPoint(0, height()) - QPoint(m_offset + size().width(), 1));
|
||||||
break;
|
break;
|
||||||
case Qt::AlignLeft:
|
case Qt::AlignLeft:
|
||||||
default:
|
default:
|
||||||
setPosition(s->geometry().bottomLeft() - QPoint(0, height()) + QPoint(m_offset, 0));
|
setPosition(s->geometry().bottomLeft() - QPoint(0, height()) + QPoint(m_offset, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_strutsTimer->stop();
|
m_strutsTimer->stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user