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 <cristian.adam@qt.io>
This commit is contained in:
Alessandro Portale
2024-03-07 20:09:01 +01:00
parent 47018e59d2
commit 24796279f3

View File

@@ -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"));