Gui/Mod: handle several compiler warnings:
* ignore -Wfree-nonheap-object for generated code * replace 0 with Qt::NoModifier when creating a QKeyEvent * in Qt 5.14 QCombobox::activated(QString) is deprecated, use textActivated * don't mix QCheckBox::setChecked() with tristate API
This commit is contained in:
@@ -184,7 +184,7 @@ bool CommandCompleter::eventFilter(QObject *o, QEvent *ev)
|
||||
}
|
||||
case Qt::Key_Tab: {
|
||||
if (this->popup()->isVisible()) {
|
||||
QKeyEvent kevent(ke->type(),Qt::Key_Down,0);
|
||||
QKeyEvent kevent(ke->type(), Qt::Key_Down, Qt::NoModifier);
|
||||
qApp->sendEvent(this->popup(), &kevent);
|
||||
return true;
|
||||
}
|
||||
@@ -192,7 +192,7 @@ bool CommandCompleter::eventFilter(QObject *o, QEvent *ev)
|
||||
}
|
||||
case Qt::Key_Backtab: {
|
||||
if (this->popup()->isVisible()) {
|
||||
QKeyEvent kevent(ke->type(),Qt::Key_Up,0);
|
||||
QKeyEvent kevent(ke->type(), Qt::Key_Up, Qt::NoModifier);
|
||||
qApp->sendEvent(this->popup(), &kevent);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user