From 35c500c84b6be8f400f8cd1029c528172bca49c7 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 30 Sep 2010 17:30:23 -0300 Subject: 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 Luciano Wolf --- abstractmetabuilder.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'abstractmetabuilder.cpp') 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) -- cgit v1.2.3