summaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-26 15:12:38 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-26 15:12:38 -0300
commit77de99c240585294980d87509247c3e612943414 (patch)
tree6c64f41bc011993f3d87c8fe6ee258531246ecf7 /headergenerator.cpp
parenta0f8bdd9be25ff10ecb1e5565188c4fef8941ddd (diff)
downloadshiboken-77de99c240585294980d87509247c3e612943414.tar.gz
shiboken-77de99c240585294980d87509247c3e612943414.tar.xz
shiboken-77de99c240585294980d87509247c3e612943414.zip
writes the virtual qualifier for a method on wrapper header file
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index fe4de388..b5817098 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -131,7 +131,10 @@ void HeaderGenerator::writeFunction(QTextStream& s, const AbstractMetaFunction*
return;
if (func->isConstructor() || func->isAbstract() || func->isVirtual()) {
- s << INDENT << functionSignature(func) << ';' << endl;
+ s << INDENT;
+ if (func->isVirtual() || func->isAbstract())
+ s << "virtual ";
+ s << functionSignature(func) << ';' << endl;
// TODO: when modified an abstract method ceases to be virtual but stays abstract
//if (func->isModifiedRemoved() && func->isAbstract()) {