eric7.WebBrowser.History.HistoryModel
Module implementing the history model.
Global Attributes
Classes
Functions
HistoryModel
    Class implementing the history model.
Derived from
QAbstractTableModel
Class Attributes
| DateRole | 
| DateTimeRole | 
| MaxRole | 
| TitleRole | 
| UrlRole | 
| UrlStringRole | 
| VisitCountRole | 
Class Methods
Methods
| HistoryModel | Constructor | 
| columnCount | Public method to get the number of columns. | 
| data | Public method to get data from the model. | 
| entryAdded | Public slot to handle the addition of a history entry. | 
| entryUpdated | Public slot to handle the update of a history entry. | 
| headerData | Public method to get the header data. | 
| historyReset | Public slot to reset the model. | 
| removeRows | Public method to remove history entries from the model. | 
| rowCount | Public method to determine the number of rows. | 
Static Methods
HistoryModel (Constructor)
HistoryModel(historyManager, parent=None)
        Constructor
- historyManager (HistoryManager)
- 
reference to the history manager object
- parent (QObject)
- 
reference to the parent object
HistoryModel.columnCount
columnCount(parent=None)
        Public method to get the number of columns.
- parent (QModelIndex)
- 
index of parent
- Return:
- 
number of columns
- Return Type:
- 
int
HistoryModel.data
data(index, role=Qt.ItemDataRole.DisplayRole)
        Public method to get data from the model.
- index (QModelIndex)
- 
index of history entry to get data for
- role (int)
- 
data role
- Return:
- 
history entry data
- Return Type:
- 
Any
HistoryModel.entryAdded
entryAdded()
        Public slot to handle the addition of a history entry.
HistoryModel.entryUpdated
entryUpdated(row)
        Public slot to handle the update of a history entry.
- row (int)
- 
row number of the updated entry
HistoryModel.headerData
headerData(section, orientation, role=Qt.ItemDataRole.DisplayRole)
        Public method to get the header data.
- section (int)
- 
section number
- orientation (Qt.Orientation)
- 
header orientation
- role (Qt.ItemDataRole)
- 
data role
- Return:
- 
header data
- Return Type:
- 
Any
HistoryModel.historyReset
historyReset()
        Public slot to reset the model.
HistoryModel.removeRows
removeRows(row, count, parent=None)
        Public method to remove history entries from the model.
- row (int)
- 
row of the first history entry to remove
- count (int)
- 
number of history entries to remove
- parent (QModelIndex)
- 
index of the parent entry
- Return:
- 
flag indicating successful removal
- Return Type:
- 
bool
HistoryModel.rowCount
rowCount(parent=None)
        Public method to determine the number of rows.
- parent (QModelIndex)
- 
index of parent
- Return:
- 
number of rows
- Return Type:
- 
int