src/eric7/Documentation/Source/eric7.WebBrowser.History.HistoryModel.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.WebBrowser.History.HistoryModel</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.History.HistoryModel</h1>
<p>
Module implementing the history model.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#HistoryModel">HistoryModel</a></td>
<td>Class implementing the history model.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="HistoryModel" ID="HistoryModel"></a>
<h2>HistoryModel</h2>
<p>
    Class implementing the history model.
</p>

<h3>Derived from</h3>
QAbstractTableModel
<h3>Class Attributes</h3>
<table>
<tr><td>DateRole</td></tr>
<tr><td>DateTimeRole</td></tr>
<tr><td>MaxRole</td></tr>
<tr><td>TitleRole</td></tr>
<tr><td>UrlRole</td></tr>
<tr><td>UrlStringRole</td></tr>
<tr><td>VisitCountRole</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#HistoryModel.__init__">HistoryModel</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#HistoryModel.columnCount">columnCount</a></td>
<td>Public method to get the number of columns.</td>
</tr>
<tr>
<td><a href="#HistoryModel.data">data</a></td>
<td>Public method to get data from the model.</td>
</tr>
<tr>
<td><a href="#HistoryModel.entryAdded">entryAdded</a></td>
<td>Public slot to handle the addition of a history entry.</td>
</tr>
<tr>
<td><a href="#HistoryModel.entryUpdated">entryUpdated</a></td>
<td>Public slot to handle the update of a history entry.</td>
</tr>
<tr>
<td><a href="#HistoryModel.headerData">headerData</a></td>
<td>Public method to get the header data.</td>
</tr>
<tr>
<td><a href="#HistoryModel.historyReset">historyReset</a></td>
<td>Public slot to reset the model.</td>
</tr>
<tr>
<td><a href="#HistoryModel.removeRows">removeRows</a></td>
<td>Public method to remove history entries from the model.</td>
</tr>
<tr>
<td><a href="#HistoryModel.rowCount">rowCount</a></td>
<td>Public method to determine the number of rows.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="HistoryModel.__init__" ID="HistoryModel.__init__"></a>
<h4>HistoryModel (Constructor)</h4>
<b>HistoryModel</b>(<i>historyManager, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>historyManager</i> (HistoryManager)</dt>
<dd>
reference to the history manager object
</dd>
<dt><i>parent</i> (QObject)</dt>
<dd>
reference to the parent object
</dd>
</dl>
<a NAME="HistoryModel.columnCount" ID="HistoryModel.columnCount"></a>
<h4>HistoryModel.columnCount</h4>
<b>columnCount</b>(<i>parent=None</i>)
<p>
        Public method to get the number of columns.
</p>

<dl>

<dt><i>parent</i> (QModelIndex)</dt>
<dd>
index of parent
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
number of columns
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
int
</dd>
</dl>
<a NAME="HistoryModel.data" ID="HistoryModel.data"></a>
<h4>HistoryModel.data</h4>
<b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>)
<p>
        Public method to get data from the model.
</p>

<dl>

<dt><i>index</i> (QModelIndex)</dt>
<dd>
index of history entry to get data for
</dd>
<dt><i>role</i> (int)</dt>
<dd>
data role
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
history entry data
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Any
</dd>
</dl>
<a NAME="HistoryModel.entryAdded" ID="HistoryModel.entryAdded"></a>
<h4>HistoryModel.entryAdded</h4>
<b>entryAdded</b>(<i></i>)
<p>
        Public slot to handle the addition of a history entry.
</p>

<a NAME="HistoryModel.entryUpdated" ID="HistoryModel.entryUpdated"></a>
<h4>HistoryModel.entryUpdated</h4>
<b>entryUpdated</b>(<i>row</i>)
<p>
        Public slot to handle the update of a history entry.
</p>

<dl>

<dt><i>row</i> (int)</dt>
<dd>
row number of the updated entry
</dd>
</dl>
<a NAME="HistoryModel.headerData" ID="HistoryModel.headerData"></a>
<h4>HistoryModel.headerData</h4>
<b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
<p>
        Public method to get the header data.
</p>

<dl>

<dt><i>section</i> (int)</dt>
<dd>
section number
</dd>
<dt><i>orientation</i> (Qt.Orientation)</dt>
<dd>
header orientation
</dd>
<dt><i>role</i> (Qt.ItemDataRole)</dt>
<dd>
data role
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
header data
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Any
</dd>
</dl>
<a NAME="HistoryModel.historyReset" ID="HistoryModel.historyReset"></a>
<h4>HistoryModel.historyReset</h4>
<b>historyReset</b>(<i></i>)
<p>
        Public slot to reset the model.
</p>

<a NAME="HistoryModel.removeRows" ID="HistoryModel.removeRows"></a>
<h4>HistoryModel.removeRows</h4>
<b>removeRows</b>(<i>row, count, parent=None</i>)
<p>
        Public method to remove history entries from the model.
</p>

<dl>

<dt><i>row</i> (int)</dt>
<dd>
row of the first history entry to remove
</dd>
<dt><i>count</i> (int)</dt>
<dd>
number of history entries to remove
</dd>
<dt><i>parent</i> (QModelIndex)</dt>
<dd>
index of the parent entry
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
flag indicating successful removal
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="HistoryModel.rowCount" ID="HistoryModel.rowCount"></a>
<h4>HistoryModel.rowCount</h4>
<b>rowCount</b>(<i>parent=None</i>)
<p>
        Public method to determine the number of rows.
</p>

<dl>

<dt><i>parent</i> (QModelIndex)</dt>
<dd>
index of parent
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
number of rows
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
int
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial