aboutsummaryrefslogtreecommitdiffstats
path: root/qface/helper/qtcpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'qface/helper/qtcpp.py')
-rw-r--r--qface/helper/qtcpp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qface/helper/qtcpp.py b/qface/helper/qtcpp.py
index 83aa8fc..dc37f2a 100644
--- a/qface/helper/qtcpp.py
+++ b/qface/helper/qtcpp.py
@@ -126,7 +126,9 @@ class Filters(object):
@staticmethod
def close_ns(symbol):
'''generates a closing names statement from a symbol'''
- return ' '.join(['}' for x in symbol.module.name_parts])
+ closing = ' '.join(['}' for x in symbol.module.name_parts])
+ name = '::'.join(symbol.module.name_parts)
+ return '{0} // namespace {1}'.format(closing, name)
@staticmethod
def using_ns(symbol):