143 """ |
143 """ |
144 # Python class? |
144 # Python class? |
145 if dtype.startswith('class '): |
145 if dtype.startswith('class '): |
146 dtype = dtype[7:-1] |
146 dtype = dtype[7:-1] |
147 # Qt related stuff? |
147 # Qt related stuff? |
148 elif (dtype.startswith(ConfigQtNames) and |
148 elif ( |
149 dtype.endswith(ConfigKnownQtTypes)): |
149 (dtype.startswith(ConfigQtNames) and |
150 self.hasChildren = True |
150 dtype.endswith(ConfigKnownQtTypes)) or |
151 |
151 dtype in ('instance', 'class') |
152 elif dtype in ('instance', 'class'): |
152 ): |
153 self.hasChildren = True |
153 self.hasChildren = True |
154 |
154 |
155 # Special Qt types should not be expanded infinite |
155 # Special Qt types should not be expanded infinite |
156 elif ".{0}".format(dtype) in ConfigKnownQtTypes: |
156 elif ".{0}".format(dtype) in ConfigKnownQtTypes: |
157 self.type = dtype # It's a Qt type, so skipping translation is ok |
157 self.type = dtype # It's a Qt type, so skipping translation is ok |