Browse Source

try object

pull/2/head
Skycoder42 7 years ago
parent
commit
640ea5c363
  1. 1
      src/mvvmcore/binding.cpp
  2. 2
      src/mvvmcore/binding.h

1
src/mvvmcore/binding.cpp

@ -159,7 +159,6 @@ void BindingPrivate::bindTo(QMetaMethod changeSignal)
testNotifier(viewProperty, true);
changeSignal = viewProperty.notifySignal();
}
auto signal = viewProperty.notifySignal();
auto trigger = metaObject()->method(metaObject()->indexOfSlot("viewTrigger()"));
connect(view, changeSignal, this, trigger);
}

2
src/mvvmcore/binding.h

@ -32,7 +32,7 @@ public:
bool isValid() const;
private:
QPointer<BindingPrivate> d;
QPointer<QObject> d;
};
Q_MVVMCORE_EXPORT Binding bind(QObject *viewModel, const char *viewModelProperty,

Loading…
Cancel
Save