port layer / block dialog to Qt 5.3