[qtdeclarative] Update viewport size when header/footer size changes.