summaryrefslogtreecommitdiffstats
path: root/generator/shellgenerator.cpp
diff options
context:
space:
mode:
authorMike Arthur <mike@kdab.net>2010-03-19 12:20:23 +0100
committerKent Hansen <kent.hansen@nokia.com>2010-03-19 12:20:23 +0100
commitfa393b2f059caf9e44f0b2e02128112b13b33d0b (patch)
tree97b1a4739ad4265e927e5d5e49d8aa6fe1a776e3 /generator/shellgenerator.cpp
parent0bc6b7c2547b618969f276eedcf6da6d772d9ab3 (diff)
Add support for throwing exceptions through the bindings to allow compilation
of code that already uses exceptions. Merge-request: 1853 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'generator/shellgenerator.cpp')
-rw-r--r--generator/shellgenerator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/shellgenerator.cpp b/generator/shellgenerator.cpp
index a978dfb..7d9f4ba 100644
--- a/generator/shellgenerator.cpp
+++ b/generator/shellgenerator.cpp
@@ -212,4 +212,7 @@ void ShellGenerator::writeFunctionSignature(QTextStream &s,
s << ")";
if (meta_function->isConstant())
s << " const";
+
+ if (!meta_function->exception().isEmpty())
+ s << " " << meta_function->exception();
}