Fixed Qt runtime warnings