mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Massive UI revamping (v7): FramelessWindowResizer: prevent horizontal expansion of horizontally fixed widgets. Part of #1209
This commit is contained in:
parent
c803788dbb
commit
ee6de48402
@ -181,6 +181,11 @@ void FramelessWindowResizer::mouseMoveEvent(QMouseEvent* event)
|
|||||||
size.setHeight(m_widget->height());
|
size.setHeight(m_widget->height());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent horizontal expansion of horizontal fixed widgets
|
||||||
|
if (m_widget->sizePolicy().horizontalPolicy() == QSizePolicy::Fixed) {
|
||||||
|
size.setWidth(m_widget->width());
|
||||||
|
}
|
||||||
|
|
||||||
// Move
|
// Move
|
||||||
if (m_vMove || m_hMove)
|
if (m_vMove || m_hMove)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user