aboutsummaryrefslogtreecommitdiffstats
path: root/generator/overloaddata.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix the fix that was previously reverted in d8e2d87f.Marcelo Lira2012-03-081-1/+18
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Revert "Fixed overload decisor sorting to put QStrings after pointers to ↵renatofilho2012-03-081-17/+0
| | | | | | | | | | wrapped objects." This reverts commit 167959faa575856b48c951fd9cc500049004cf60. Conflicts: generator/overloaddata.cpp
* Fixed overload functions with QVariant.renatofilho2012-03-081-1/+8
| | | | | | | Decrease the QVariant priority during the function overload. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Removed debug statements mistakenly commited.Marcelo Lira2012-03-081-4/+0
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed overload decisor sorting to put QStrings after pointers to wrapped ↵Marcelo Lira2012-03-081-0/+14
| | | | | | | | | | | | | | objects. This is a special extension for Qt bindings. Since QStrings accept None values the same way object and value types accept, to avoid confusion and calling the wrong signature QString must go after object and value pointers. This wasn't a problem before, but now QString is a primitive-type and the decisor has no access to its implicit conversions, and thus can't sort it properly. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Updated the overload sorting to handle convertible types inside containers.Marcelo Lira2012-03-081-67/+177
| | | | | | | | | | | | | | | | | | | | | | | | | The code as it is now will work for containers with wrapped types, and will also consider some primitive types implicitly convertible for dependency sorting purposes. One weakness of the current solution is that it doesn't handle all possible combinations for containers with multiple types. E.g. for Container<T1, T2>, with T1 being implicitly convertible from I1, and T2 from I2, dependency resolution will take into account * Container<T1, T2> * Container<I1, T2> * Container<T1, I2> but not * Container<I1, I2> For the time being every binding is working fine this way, when the need arises we can fix it, for now let us not slow down the generation. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2012-03-081-0/+788
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>