Bug 308997 - Qyoto: support for default values of parameters
Summary: Qyoto: support for default values of parameters
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-25 18:11 UTC by Dimitar Dobrev
Modified: 2013-01-04 20:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.