--- a/eric6/Documentation/Source/eric6.WebBrowser.Download.DownloadModel.html Wed Sep 25 19:40:31 2019 +0200 +++ b/eric6/Documentation/Source/eric6.WebBrowser.Download.DownloadModel.html Wed Sep 25 19:42:44 2019 +0200 @@ -18,186 +18,242 @@ </style> </head> -<body><a NAME="top" ID="top"></a> +<body> +<a NAME="top" ID="top"></a> <h1>eric6.WebBrowser.Download.DownloadModel</h1> + <p> Module implementing the download model. </p> <h3>Global Attributes</h3> + <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> + <table> + <tr> <td><a href="#DownloadModel">DownloadModel</a></td> <td>Class implementing the download model.</td> </tr> </table> <h3>Functions</h3> + <table> <tr><td>None</td></tr> </table> -<hr /><hr /> +<hr /> +<hr /> <a NAME="DownloadModel" ID="DownloadModel"></a> <h2>DownloadModel</h2> + <p> Class implementing the download model. </p> <h3>Derived from</h3> QAbstractListModel <h3>Class Attributes</h3> + <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> + <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> + <table> + <tr> <td><a href="#DownloadModel.__init__">DownloadModel</a></td> <td>Constructor</td> -</tr><tr> +</tr> +<tr> <td><a href="#DownloadModel.data">data</a></td> <td>Public method to get data from the model.</td> -</tr><tr> +</tr> +<tr> <td><a href="#DownloadModel.flags">flags</a></td> <td>Public method to get flags for an item.</td> -</tr><tr> +</tr> +<tr> <td><a href="#DownloadModel.mimeData">mimeData</a></td> <td>Public method to return the mime data.</td> -</tr><tr> +</tr> +<tr> <td><a href="#DownloadModel.removeRows">removeRows</a></td> <td>Public method to remove downloads from the model.</td> -</tr><tr> +</tr> +<tr> <td><a href="#DownloadModel.rowCount">rowCount</a></td> <td>Public method to get the number of rows of the model.</td> </tr> </table> <h3>Static Methods</h3> + <table> <tr><td>None</td></tr> </table> + <a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a> <h4>DownloadModel (Constructor)</h4> <b>DownloadModel</b>(<i>manager, parent=None</i>) + <p> Constructor -</p><dl> +</p> +<dl> + <dt><i>manager</i> (DownloadManager)</dt> <dd> reference to the download manager -</dd><dt><i>parent</i> (QObject)</dt> +</dd> +<dt><i>parent</i> (QObject)</dt> <dd> reference to the parent object </dd> -</dl><a NAME="DownloadModel.data" ID="DownloadModel.data"></a> +</dl> +<a NAME="DownloadModel.data" ID="DownloadModel.data"></a> <h4>DownloadModel.data</h4> <b>data</b>(<i>index, role</i>) + <p> Public method to get data from the model. -</p><dl> +</p> +<dl> + <dt><i>index</i> (QModelIndex)</dt> <dd> index to get data for -</dd><dt><i>role</i> (int)</dt> +</dd> +<dt><i>role</i> (int)</dt> <dd> role of the data to retrieve </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> requested data </dd> -</dl><dl> +</dl> +<dl> <dt>Return Type:</dt> <dd> any </dd> -</dl><a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> +</dl> +<a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> <h4>DownloadModel.flags</h4> <b>flags</b>(<i>index</i>) + <p> Public method to get flags for an item. -</p><dl> +</p> +<dl> + <dt><i>index</i> (QModelIndex)</dt> <dd> index of the node cell </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> flags </dd> -</dl><dl> +</dl> +<dl> <dt>Return Type:</dt> <dd> Qt.ItemFlags </dd> -</dl><a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> +</dl> +<a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> <h4>DownloadModel.mimeData</h4> <b>mimeData</b>(<i>indexes</i>) + <p> Public method to return the mime data. -</p><dl> +</p> +<dl> + <dt><i>indexes</i> (QModelIndexList)</dt> <dd> list of indexes </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> mime data </dd> -</dl><dl> +</dl> +<dl> <dt>Return Type:</dt> <dd> QMimeData </dd> -</dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> +</dl> +<a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> <h4>DownloadModel.removeRows</h4> <b>removeRows</b>(<i>row, count, parent=None</i>) + <p> Public method to remove downloads from the model. -</p><dl> +</p> +<dl> + <dt><i>row</i> (int)</dt> <dd> row of the first download to remove -</dd><dt><i>count</i> (int)</dt> +</dd> +<dt><i>count</i> (int)</dt> <dd> number of downloads to remove -</dd><dt><i>parent</i> (QModelIndex)</dt> +</dd> +<dt><i>parent</i> (QModelIndex)</dt> <dd> index of the parent download node </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> flag indicating successful removal </dd> -</dl><dl> +</dl> +<dl> <dt>Return Type:</dt> <dd> bool </dd> -</dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> +</dl> +<a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> <h4>DownloadModel.rowCount</h4> <b>rowCount</b>(<i>parent=None</i>) + <p> Public method to get the number of rows of the model. -</p><dl> +</p> +<dl> + <dt><i>parent</i> (QModelIndex)</dt> <dd> parent index </dd> -</dl><dl> +</dl> +<dl> <dt>Returns:</dt> <dd> number of rows </dd> -</dl><dl> +</dl> +<dl> <dt>Return Type:</dt> <dd> int