Add defaults to switch statements to avoid many warnings about unhandled enum values
This commit is contained in:
@@ -69,6 +69,9 @@ bool wxQtPushButton::event(QEvent* e)
|
||||
case QEvent::FocusIn:
|
||||
case QEvent::FocusOut:
|
||||
GetHandler()->QtUpdateState();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return QPushButton::event(e);
|
||||
|
@@ -37,6 +37,8 @@ wxDragResult DropActionToDragResult(Qt::DropAction action)
|
||||
return wxDragMove;
|
||||
case Qt::LinkAction:
|
||||
return wxDragLink;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
wxFAIL_MSG("Illegal drop action");
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user