From ee6de484023cfb51db74f551f2b62b321fe3f47b Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 23 Apr 2022 18:46:08 +0200 Subject: [PATCH] Massive UI revamping (v7): FramelessWindowResizer: prevent horizontal expansion of horizontally fixed widgets. Part of #1209 --- sdrgui/gui/framelesswindowresizer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdrgui/gui/framelesswindowresizer.cpp b/sdrgui/gui/framelesswindowresizer.cpp index 3ecf98262..ba5c0d7c5 100644 --- a/sdrgui/gui/framelesswindowresizer.cpp +++ b/sdrgui/gui/framelesswindowresizer.cpp @@ -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) {