[Development] A modest proposal: disable lower-case keywords (emit, foreach, forever, signals, slots) by default
Konstantin Tokarev
annulen at yandex.ru
Wed Feb 26 17:44:26 CET 2020
26.02.2020, 19:28, "Alex Blasche" <alexander.blasche at qt.io>:
>> Am 26.02.20 um 13:42 schrieb Tor Arne Vestbø:
>> > We don’t need one rule to rule them all either. Many signals are named
>> fooChanged(), and can perfectly well stand on their own, without annotations.
>> Corner cases like "emit pressed();” can be annotated with Q_EMIT or a comment
>> to make it clearer what’s going on.
>
> Some end with "Changed". The overwhelming amount does not follow this rule and we won't change the naming for Qt 6 either. The naming convention merely states that there is a verb at the end.
For example, let's consider QAbstractButton::clicked() signal. There is no sense
in renaming it to anything ending with "Changed".
--
Regards,
Konstantin
More information about the Development
mailing list