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:
parent
3e65d0408b
commit
35dd643b07
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user