Le 23/10/2016 à 13:42, Guillaume Munch a écrit :
Le 23/10/2016 à 13:27, Jean-Marc Lasgouttes a écrit :
Le 22/10/2016 à 22:36, Guillaume Munch a écrit :
I know that this is not really followed in LyX currently but I suggest
to write "Q_EMIT titleChanged(this)" instead. This is meant to warn the
reader that something they do not expect can happen. (And similarly
whenever a signal is emitted.) The keyword is usually "emit" but Qt
keywords are disabled in LyX for some reason.
It should be Qt's job to enforce this.
Yes, so much more could and should be checked by the compilers!
By the way, since we appreciate the value of static checks, it is
possible to use the new syntax for signal/slot connections, which allows
us to know during compilation that it is mistyped or that the signal or
the slot does not exist. When we are ready to drop qt4.