From d4a76a6333d13231fecb938474e583130929119a Mon Sep 17 00:00:00 2001 From: Juergen Bocklage-Ryannel Date: Wed, 19 Jul 2017 11:14:26 +0200 Subject: changed the module.module_name behavior that it does no capitalize the word ans simply returns the last part of the module uri --- qface/helper/qtcpp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qface/helper') diff --git a/qface/helper/qtcpp.py b/qface/helper/qtcpp.py index 8310c4b..985e8cd 100644 --- a/qface/helper/qtcpp.py +++ b/qface/helper/qtcpp.py @@ -36,7 +36,7 @@ class Filters(object): elif t.is_void: return '' elif t.is_enum: - module_name = t.reference.module.module_name + module_name = upper_first(t.reference.module.module_name) value = next(iter(t.reference.members)) return '{0}{1}Module::{2}'.format(prefix, module_name, value) elif symbol.type.is_list: @@ -55,7 +55,7 @@ class Filters(object): @staticmethod def parameterType(symbol): prefix = Filters.classPrefix - module_name = symbol.module.module_name + module_name = upper_first(symbol.module.module_name) if symbol.type.is_enum: return '{0}{1}Module::{2} {3}'.format(prefix, module_name, symbol.type, symbol) if symbol.type.is_void or symbol.type.is_primitive: @@ -82,7 +82,7 @@ class Filters(object): @staticmethod def returnType(symbol): prefix = Filters.classPrefix - module_name = symbol.module.module_name + module_name = upper_first(symbol.module.module_name) if symbol.type.is_enum: return '{0}{1}Module::{2}'.format(prefix, module_name, symbol.type) if symbol.type.is_void or symbol.type.is_primitive: -- cgit v1.2.3