Add defaults to switch statements to avoid many warnings about unhandled enum values

This commit is contained in:
Paul Cornett
2019-04-05 09:26:05 -07:00
parent 67773f58f1
commit 8791313aff
3 changed files with 7 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ bool wxQtPushButton::event(QEvent* e)
case QEvent::FocusIn:
case QEvent::FocusOut:
GetHandler()->QtUpdateState();
break;
default:
break;
}
return QPushButton::event(e);

View File

@@ -37,6 +37,8 @@ wxDragResult DropActionToDragResult(Qt::DropAction action)
return wxDragMove;
case Qt::LinkAction:
return wxDragLink;
default:
break;
}
wxFAIL_MSG("Illegal drop action");

View File

@@ -115,6 +115,8 @@ static void InsertMenuItemAction( const wxMenu *menu, const wxMenuItem *previous
}
break;
}
default:
break;
}
// Insert the action into the actual menu:
QAction *successiveItemAction = ( successiveItem != NULL ) ? successiveItem->GetHandle() : NULL;