Manoj Rajagopalan wrote:
Abdelrazak Younes wrote:
Use that syntax instead:
+void on_caseInsensitiveCB_toggled(bool)
Good idea. I've used it before. had forgotten :-)
Also, you don't really need the caseInsensitive_ private member, you
just need to access caseInsensitiveCB->isChecked() when you need to.
does this work even if the checkbox is disabled? I was not sure so I
added a flag variable.
You can check that, too, if need be:
caseInsensitiveCB->isEnabled() && caseInsensitiveCB->isChecked()
I'm not sure we should trust what the latter returns if it's not
enabled. I think you can still get True in that case. This is better
than the flag only because you then don't have to worry about keeping
the flag in sync.
rh