summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tools/dbusxml2qt3/classgen.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/dbusxml2qt3/classgen.cpp b/src/tools/dbusxml2qt3/classgen.cpp
index b8e6040..0954e7c 100644
--- a/src/tools/dbusxml2qt3/classgen.cpp
+++ b/src/tools/dbusxml2qt3/classgen.cpp
@@ -681,7 +681,11 @@ static void writeSignalDeclarations(const Class& classData, Class::Role role,
case Class::Proxy:
stream << "signals:" << endl;
- stream << " void AsyncErrorResponseDetected(int asyncCallId, const TQT_DBusError error);" << endl << endl;
+ if (!classData.asyncReplySignals.isEmpty())
+ {
+ stream << " void AsyncErrorResponseDetected(int asyncCallId, "
+ << "const TQT_DBusError error);" << endl << endl;
+ }
prefix = " void ";
break;