From 24796279f3079474469858c366498cd62a84492b Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 7 Mar 2024 20:09:01 +0100 Subject: [PATCH] ScreenRecorder: Fix widget colors in the Crop&Trim dialog panelWidget() and isInUnstyledDialogOrPopup() in ManhattanStyle.cpp would mark the contents of this dialog as "panel widgets". In order to evade this, we don't set the dialog type of the Crop&Trim dialog to Qt::Windows. The author of this dialog did not leave us a comment on why Qt::Windows was chosen, so we can assume it was done for no particular reason. Fixes: QTCREATORBUG-29893 Change-Id: I90f653e39cee839203b8767cb30eadab69baaf09 Reviewed-by: Cristian Adam --- src/plugins/screenrecorder/cropandtrim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/screenrecorder/cropandtrim.cpp b/src/plugins/screenrecorder/cropandtrim.cpp index cdd63994a89..ae52730aeca 100644 --- a/src/plugins/screenrecorder/cropandtrim.cpp +++ b/src/plugins/screenrecorder/cropandtrim.cpp @@ -637,7 +637,7 @@ private: }; CropAndTrimDialog::CropAndTrimDialog(const ClipInfo &clip, QWidget *parent) - : QDialog(parent, Qt::Window) + : QDialog(parent) , m_clipInfo(clip) { setWindowTitle(Tr::tr("Crop and Trim"));