Skip to content

Commit f5eb178

Browse files
author
florianlink
committed
added more default arguments
git-svn-id: http://svn.code.sf.net/p/pythonqt/code/trunk@379 ea8d5007-eb21-0410-b261-ccb3ea6e24a9
1 parent 4bb136e commit f5eb178

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

generator/abstractmetalang.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,13 @@ void AbstractMetaClass::fixFunctions()
17671767

17681768
}
17691769

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+
/*
17701777
if (cmp & AbstractMetaFunction::EqualDefaultValueOverload) {
17711778
AbstractMetaArgumentList arguments;
17721779
if (f->arguments().size() < sf->arguments().size())
@@ -1776,7 +1783,7 @@ void AbstractMetaClass::fixFunctions()
17761783
17771784
for (int i=0; i<arguments.size(); ++i)
17781785
arguments[i]->setDefaultValueExpression(QString());
1779-
}
1786+
}*/
17801787

17811788

17821789
// Otherwise we have function shadowing and we can

0 commit comments

Comments
 (0)