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::FocusIn:
|
||||||
case QEvent::FocusOut:
|
case QEvent::FocusOut:
|
||||||
GetHandler()->QtUpdateState();
|
GetHandler()->QtUpdateState();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return QPushButton::event(e);
|
return QPushButton::event(e);
|
||||||
|
@@ -37,6 +37,8 @@ wxDragResult DropActionToDragResult(Qt::DropAction action)
|
|||||||
return wxDragMove;
|
return wxDragMove;
|
||||||
case Qt::LinkAction:
|
case Qt::LinkAction:
|
||||||
return wxDragLink;
|
return wxDragLink;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFAIL_MSG("Illegal drop action");
|
wxFAIL_MSG("Illegal drop action");
|
||||||
|
@@ -115,6 +115,8 @@ static void InsertMenuItemAction( const wxMenu *menu, const wxMenuItem *previous
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// Insert the action into the actual menu:
|
// Insert the action into the actual menu:
|
||||||
QAction *successiveItemAction = ( successiveItem != NULL ) ? successiveItem->GetHandle() : NULL;
|
QAction *successiveItemAction = ( successiveItem != NULL ) ? successiveItem->GetHandle() : NULL;
|
||||||
|
Reference in New Issue
Block a user