aboutsummaryrefslogtreecommitdiffstats
path: root/generator.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-03 18:48:57 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-03 19:04:03 -0300
commit518028765c892b7a6a840cca92376ccc8b77b04c (patch)
treee2ad45d551fdecad26f4c3f3e50ec18b58ecb46c /generator.h
parentb811be1ce4aa832ed7aa8542da535000924effa3 (diff)
Fixed assert failure when using qtdocgenerator.
Added a default implementation for Generator::subDirectoryForClass. This breaks the binary compatibility but NOT the source compatibility.
Diffstat (limited to 'generator.h')
-rw-r--r--generator.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/generator.h b/generator.h
index 06dca5074..4c6236c8f 100644
--- a/generator.h
+++ b/generator.h
@@ -137,7 +137,7 @@ public:
virtual bool shouldGenerate(const AbstractMetaClass *) const;
/// Returns the subdirectory used to write the binding code of an AbstractMetaClass.
- virtual QString subDirectoryForClass(const AbstractMetaClass* clazz) const = 0;
+ virtual QString subDirectoryForClass(const AbstractMetaClass* clazz) const;
/**
* Translate metatypes to binding source format.
@@ -251,12 +251,7 @@ protected:
* or nothing the use the name of the currently processed package
* /return a string representing the subdirectory path for the given package
*/
- virtual QString subDirectoryForPackage(QString packageName = QString()) const
- {
- if (packageName.isEmpty())
- packageName = m_packageName;
- return QString(packageName).replace(".", QDir::separator());
- }
+ virtual QString subDirectoryForPackage(QString packageName = QString()) const;
/**
* Write the bindding code for an AbstractMetaClass.