[Telepathy-commits] [telepathy-qt4/master] Make the group argument to client-gen really optional, as extensions won't probably care about doxygen groups

Olli Salli olli.salli at collabora.co.uk
Mon Sep 29 13:05:10 PDT 2008


---
 tools/qt4-client-gen.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/qt4-client-gen.py b/tools/qt4-client-gen.py
index 1596c98..e8ab740 100644
--- a/tools/qt4-client-gen.py
+++ b/tools/qt4-client-gen.py
@@ -28,7 +28,7 @@ from libqt4codegen import binding_from_usage, extract_arg_or_member_info, format
 class Generator(object):
     def __init__(self, opts):
         try:
-            self.group = opts.get('--group', 'no-group-defined')
+            self.group = opts.get('--group', '')
             self.headerfile = opts['--headerfile']
             self.implfile = opts['--implfile']
             self.namespace = opts['--namespace']
@@ -122,7 +122,7 @@ namespace %s
 /**
  * \\class %(name)s
 %(headercmd)s\
- * \\ingroup %(group)s
+%(groupcmd)s\
  *
  * Proxy class providing a 1:1 mapping of the D-Bus interface "%(dbusname)s."
  */
@@ -171,7 +171,7 @@ public:
     );
 """ % {'name' : name,
        'headercmd' : get_headerfile_cmd(self.realinclude, self.prettyinclude),
-       'group' : self.group,
+       'groupcmd' : self.group and (' * \\ingroup %s\n' % self.group),
        'dbusname' : dbusname})
 
         self.b("""
-- 
1.5.6.5




More information about the Telepathy-commits mailing list