Commit 37ac01ea authored by CAMP C++ Builder's avatar CAMP C++ Builder
Browse files

core API extension: ButtonProperty now forwards click event to shared properties

parent b347ef9a
......@@ -37,6 +37,13 @@ namespace campvis {
}
void ButtonProperty::click() {
//pass the click on to all shared button that are connected
for (auto it = _sharedProperties.begin(), end = _sharedProperties.end(); it != end; ++it) {
ButtonProperty * btn = dynamic_cast<ButtonProperty*>(*it);
if (btn)
btn->click();
}
s_clicked.emitSignal();
s_changed.emitSignal(this);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment