--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Unused.UnusedChecker.html Thu May 25 19:51:47 2023 +0200 +++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Unused.UnusedChecker.html Thu May 25 19:52:31 2023 +0200 @@ -363,6 +363,10 @@ <td>Private method to check, if the function node defines a special function.</td> </tr> <tr> +<td><a href="#UnusedChecker.__isEventHandlerMethod">__isEventHandlerMethod</a></td> +<td>Private method to check, if the function node defines a Qt event handler.</td> +</tr> +<tr> <td><a href="#UnusedChecker.__isStubFunction">__isStubFunction</a></td> <td>Private method to check, if the given function node defines a stub function.</td> </tr> @@ -608,6 +612,37 @@ bool </dd> </dl> +<a NAME="UnusedChecker.__isEventHandlerMethod" ID="UnusedChecker.__isEventHandlerMethod"></a> +<h4>UnusedChecker.__isEventHandlerMethod</h4> +<b>__isEventHandlerMethod</b>(<i>functionNode</i>) + +<p> + Private method to check, if the function node defines a Qt event handler. +</p> +<p> + Qt event handler methods are assumed to end with 'Event' or have the name + 'event' or 'eventFilter'. Only standard methodes (i.e. ast.FunctionDef) + are assumed to be potential event handlers. +</p> +<dl> + +<dt><i>functionNode</i> (ast.AsyncFunctionDef, ast.FunctionDef or ast.Lambda)</dt> +<dd> +reference to the node defining the function or lambda +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a Qt event handler method +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="UnusedChecker.__isStubFunction" ID="UnusedChecker.__isStubFunction"></a> <h4>UnusedChecker.__isStubFunction</h4> <b>__isStubFunction</b>(<i>functionNode</i>)