diff options
Diffstat (limited to 'src/checks/level1/README-const-signal-or-slot.md')
-rw-r--r-- | src/checks/level1/README-const-signal-or-slot.md | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/checks/level1/README-const-signal-or-slot.md b/src/checks/level1/README-const-signal-or-slot.md deleted file mode 100644 index 9a3e71b2..00000000 --- a/src/checks/level1/README-const-signal-or-slot.md +++ /dev/null @@ -1,14 +0,0 @@ -# const-signal-or-slot - -Warns when a signal or non-void slot is const. - -This aims to prevent unintentionally marking a getter as slot, or connecting to -the wrong method. For signals, it's just pointless to mark them as const. - -Warns for the following cases: - -- non-void const method marked as slot -- const method marked as signal -- connecting to a method which isn't marked as slot, is const and returns non-void - -For exposing methods to QML prefer either Q_PROPERTY or Q_INVOKABLE. |