Massive UI revamping (v7): FramelessWindowResizer: prevent horizontal expansion of horizontally fixed widgets. Part of #1209

pull/1215/head
f4exb 2022-04-23 18:46:08 +02:00
rodzic c803788dbb
commit ee6de48402
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -181,6 +181,11 @@ void FramelessWindowResizer::mouseMoveEvent(QMouseEvent* event)
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
if (m_vMove || m_hMove)
{