uidesigner: Fixes compiler hints about unused variables.