Bug 308997

Summary: Qyoto: support for default values of parameters
Product: [Developer tools] bindings Reporter: Dimitar Dobrev <dpldobrev>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

Description Dimitar Dobrev 2012-10-25 18:11:18 UTC
C# has had support for default values of parameters for more than 2 years now and so it'd be better for Qyoto to generate them where applicable instead of overloads.

Reproducible: Always

Steps to Reproduce:
1. Generate Qyoto;
2. Look at the generated C# function corresponding to a Qt function with default values of parameters.
Actual Results:  
There are numerous overloads so that all combinations of the Qt function (with or without specified parameters with default values) are generated.

Expected Results:  
There is a single function with the same default values of the corresponding parameters.

This depends on SMOKE being able to generate, either in C++ or in separate files, these default values.