From 2df41a3a919f1a131d311112e6fc444eff12c229 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 8 May 2016 10:12:52 +0200 Subject: Catch if we try to set a property when we can't --- common/domainadaptor.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/domainadaptor.h b/common/domainadaptor.h index 0159c6c..99afb60 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h @@ -93,6 +93,13 @@ public: { } + virtual QVariant setProperty(const QByteArray &key, const QVariant &value) const + { + Q_ASSERT(false); + Warning() << "Can't set property " << key; + return QVariant(); + } + virtual QVariant getProperty(const QByteArray &key) const { if (mResourceBuffer && mResourceMapper->hasMapping(key)) { -- cgit v1.2.3