eric6.WebBrowser.Download.DownloadModel

Module implementing the download model.

Global Attributes

None

Classes

DownloadModel Class implementing the download model.

Functions

None


DownloadModel

Class implementing the download model.

Derived from

QAbstractListModel

Class Attributes

None

Class Methods

None

Methods

DownloadModel Constructor
data Public method to get data from the model.
flags Public method to get flags for an item.
mimeData Public method to return the mime data.
removeRows Public method to remove bookmarks from the model.
rowCount Public method to get the number of rows of the model.

Static Methods

None

DownloadModel (Constructor)

DownloadModel(manager, parent=None)

Constructor

manager
reference to the download manager (DownloadManager)
parent
reference to the parent object (QObject)

DownloadModel.data

data(index, role)

Public method to get data from the model.

index
index to get data for (QModelIndex)
role
role of the data to retrieve (integer)
Returns:
requested data

DownloadModel.flags

flags(index)

Public method to get flags for an item.

index
index of the node cell (QModelIndex)
Returns:
flags (Qt.ItemFlags)

DownloadModel.mimeData

mimeData(indexes)

Public method to return the mime data.

indexes
list of indexes (QModelIndexList)
Returns:
mime data (QMimeData)

DownloadModel.removeRows

removeRows(row, count, parent=QModelIndex())

Public method to remove bookmarks from the model.

row
row of the first bookmark to remove (integer)
count
number of bookmarks to remove (integer)
parent
index of the parent bookmark node (QModelIndex)
Returns:
flag indicating successful removal (boolean)

DownloadModel.rowCount

rowCount(parent=QModelIndex())

Public method to get the number of rows of the model.

parent
parent index (QModelIndex)
Returns:
number of rows (integer)
Up