Hello there,
I just wondered, in previous versions you were able to write code like
I had a look into the code and found that - since version 0.8 - the connect function got "simplified" to
or one of its sibblings. So, when writing the code mentioned above you will get an error that reads "There is no signal called 'checked unchecked'". Why did that behaviour get changed? What would be the best way to accomplish the previous behaviour?
Lars
I just wondered, in previous versions you were able to write code like
Code (cpp) Select
my_checkbox->connect("checked unchecked", [](bool status){ std::cout << status << '\n'; });I had a look into the code and found that - since version 0.8 - the connect function got "simplified" to
Code (cpp) Select
const unsigned int id = getSignal(toLower(signalName)).connect([f=std::function<void(const Args&...)>(handler),args...](){ f(args...); });
m_connectedSignals[id] = toLower(signalName);
return id;or one of its sibblings. So, when writing the code mentioned above you will get an error that reads "There is no signal called 'checked unchecked'". Why did that behaviour get changed? What would be the best way to accomplish the previous behaviour?
Lars