diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-08 10:12:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-08 10:12:52 +0200 |
commit | 2df41a3a919f1a131d311112e6fc444eff12c229 (patch) | |
tree | 0362268aeec87e882e8b865b1e18fd391f2c56b4 | |
parent | ef5c2f49f9a66fd783bf3014f47678a054c0bdb8 (diff) | |
download | sink-2df41a3a919f1a131d311112e6fc444eff12c229.tar.gz sink-2df41a3a919f1a131d311112e6fc444eff12c229.zip |
Catch if we try to set a property when we can't
-rw-r--r-- | common/domainadaptor.h | 7 |
1 files changed, 7 insertions, 0 deletions
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: | |||
93 | { | 93 | { |
94 | } | 94 | } |
95 | 95 | ||
96 | virtual QVariant setProperty(const QByteArray &key, const QVariant &value) const | ||
97 | { | ||
98 | Q_ASSERT(false); | ||
99 | Warning() << "Can't set property " << key; | ||
100 | return QVariant(); | ||
101 | } | ||
102 | |||
96 | virtual QVariant getProperty(const QByteArray &key) const | 103 | virtual QVariant getProperty(const QByteArray &key) const |
97 | { | 104 | { |
98 | if (mResourceBuffer && mResourceMapper->hasMapping(key)) { | 105 | if (mResourceBuffer && mResourceMapper->hasMapping(key)) { |