Add deleteItems(), needed by QtQuick.Layouts

(Picked from QGridLayoutEngine in qtquickcontrols)

Change-Id: Ieb00f7fb0166669e6831f3d3dbe3a9ef78b57453
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>