summaryrefslogtreecommitdiff
path: root/qt/qdbuserror.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qdbuserror.h')
-rw-r--r--qt/qdbuserror.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/qdbuserror.h b/qt/qdbuserror.h
index 9450088..da3d026 100644
--- a/qt/qdbuserror.h
+++ b/qt/qdbuserror.h
@@ -36,6 +36,9 @@ class QDBUS_EXPORT QDBusError
public:
QDBusError(const DBusError *error = 0);
QDBusError(const QDBusMessage& msg);
+ inline QDBusError(const QString &name, const QString &message)
+ : nm(name), msg(message)
+ { }
inline QString name() const { return nm; }
inline QString message() const { return msg; }