Is there any way to prevent or discourage the use of the old Signal-Slot syntax from Qt4 in projects solely written in Qt5?
In our current project, there are no occurrences of the old syntax and I don't see any reason to support them either. Thus we want to disable it completely to prevent accidental use. Is this possible, e.g. by defining certain symbols in the .pro
files?
I know this should be possible with custom Linter rules but we don't have that centralized yet unfortunately.
//old way. should throw a compiler error or warning
connect(sender, SIGNAL(sig), receiver, SLOT(slt));
//new way
connect(sender, &Send::sig, receiver, &Rec::slt);