Fix coding style

Curly brace is supposed to go on the same line as the if.

Change-Id: I92fbd984e9ccdb06acdfe89e45c34b26a08df0cb
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Fan PengCheng 2021-03-22 18:21:08 +08:00 committed by Volker Hilsheimer
parent 3e65d0408b
commit 35dd643b07

View File

@ -99,9 +99,7 @@ public:
#ifndef QT_NO_CONTEXTMENU
void contextMenuEvent(QContextMenuEvent * e) override
{
QMenu *menu = createStandardContextMenu();
if (menu)
{
if (QMenu *menu = createStandardContextMenu()) {
menu->setAttribute(Qt::WA_DeleteOnClose);
menu->popup(e->globalPos());
}