forked from qt-creator/qt-creator
PlainTextEdit: Comment out some no-op code to avoid warnings
.../src/libs/utils/plaintextedit/widgettextcontrol.cpp:2064:13: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] .../src/libs/utils/plaintextedit/widgettextcontrol.cpp:2063:19: warning: unused variable 'window' [-Wunused-variable] Change-Id: Ic6dc6c369d694c4876d88e126f7103f91fa4745e Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -2059,10 +2059,12 @@ void WidgetTextControlPrivate::contextMenuEvent(const QPoint &screenPos, const Q
|
||||
return;
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
/*
|
||||
if (auto *widget = qobject_cast<QWidget *>(parent())) {
|
||||
if (auto *window = widget->window()->windowHandle())
|
||||
;// QMenuPrivate::get(menu)->topData()->initialScreen = window->screen();
|
||||
}
|
||||
*/
|
||||
|
||||
menu->popup(screenPos);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user