QColorDialog: code tidies

Combine two flag-like enumerations using a bitwise OR, not a plus.
Cleanup for the follow-up commits.

Change-Id: Iceb05bf5ea0635d623ba9a7d145606e80b7f21f3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Giuseppe D'Angelo 2022-02-24 01:02:06 +01:00
parent a74cdf778c
commit 2b6daa610e
1 changed files with 1 additions and 1 deletions

View File

@ -1784,7 +1784,7 @@ void QColorDialogPrivate::initWidgets()
pickLay->addLayout(cLay);
cp = new QColorPicker(q);
cp->setFrameStyle(QFrame::Panel + QFrame::Sunken);
cp->setFrameStyle(QFrame::Panel | QFrame::Sunken);
#if defined(QT_SMALL_COLORDIALOG)
cp->hide();