diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-30 17:30:23 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:11 -0300 |
commit | 35c500c84b6be8f400f8cd1029c528172bca49c7 (patch) | |
tree | 064c1bc9f8866fe14245618aeac8988cf8954a6c /abstractmetabuilder.cpp | |
parent | 128c833f6b51a3709a2b0162f639121981389af2 (diff) |
Add toStringCapability attribute to AbstractMetaClass.
This capatility indicates that the given type has a QDebug::operator<<
function, so it's only useful when using PySide extensions.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index 75190a87a..b0cbc24a0 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -148,19 +148,16 @@ void AbstractMetaBuilder::registerHashFunction(FunctionModelItem function_item) void AbstractMetaBuilder::registerToStringCapability(FunctionModelItem function_item) { - // TODO This must set an AbstractMetaFunction, not a FunctionModelItem! - #if 0 ArgumentList arguments = function_item->arguments(); if (arguments.size() == 2) { if (arguments.at(0)->type().toString() == "QDebug") { ArgumentModelItem arg = arguments.at(1); if (AbstractMetaClass *cls = argumentToClass(arg)) { if (arg->type().indirections() < 2) - cls->setToStringCapability(function_item); + cls->setToStringCapability(true); } } } - #endif } void AbstractMetaBuilder::traverseOperatorFunction(FunctionModelItem item) |