Compound device edit dialog

This commit is contained in:
Jan Käberich 2022-08-05 18:29:31 +02:00
parent 90ac9c57e1
commit 74e6a439af
27 changed files with 4439 additions and 8 deletions

View file

@ -7,7 +7,7 @@ class QPointerVariant {
public:
template <typename T> QPointerVariant(T *ptr)
: ptr(static_cast<void*>(ptr)),
variant(QVariant(*ptr)){};
variant(QVariant(*ptr)){}
void setValue(const QVariant &value) {
auto destType = variant.type();
if(!value.canConvert(destType)) {