File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1767,6 +1767,13 @@ void AbstractMetaClass::fixFunctions()
1767
1767
1768
1768
}
1769
1769
1770
+ /* I did not see a good reason for erasing the default arguments,
1771
+ maybe this was a java related problem?
1772
+ I uncommented this code, because it causes that the default arguments
1773
+ of QBoxLayout::addWidget(QWidget, stretch, alignment) are removed because of
1774
+ QLayout::addWidget(QWidget)
1775
+ */
1776
+ /*
1770
1777
if (cmp & AbstractMetaFunction::EqualDefaultValueOverload) {
1771
1778
AbstractMetaArgumentList arguments;
1772
1779
if (f->arguments().size() < sf->arguments().size())
@@ -1776,7 +1783,7 @@ void AbstractMetaClass::fixFunctions()
1776
1783
1777
1784
for (int i=0; i<arguments.size(); ++i)
1778
1785
arguments[i]->setDefaultValueExpression(QString());
1779
- }
1786
+ }*/
1780
1787
1781
1788
1782
1789
// Otherwise we have function shadowing and we can
You can’t perform that action at this time.
0 commit comments