eric7.WebBrowser.Passwords.PasswordModel

Module implementing a model for password management.

Global Attributes

None

Classes

PasswordModel Class implementing a model for password management.

Functions

None


PasswordModel

Class implementing a model for password management.

Derived from

QAbstractTableModel

Class Attributes

None

Class Methods

None

Methods

PasswordModel Constructor
__passwordsChanged Private slot handling a change of the registered passwords.
columnCount Public method to get the number of columns of the model.
data Public method to get data from the model.
headerData Public method to get the header data.
removeRows Public method to remove entries from the model.
rowCount Public method to get the number of rows of the model.
setShowPasswords Public methods to show passwords.
showPasswords Public method to indicate, if passwords shall be shown.

Static Methods

None

PasswordModel (Constructor)

PasswordModel(manager, parent=None)

Constructor

manager (PasswordManager)
reference to the password manager
parent (QObject)
reference to the parent object

PasswordModel.__passwordsChanged

__passwordsChanged()

Private slot handling a change of the registered passwords.

PasswordModel.columnCount

columnCount(parent=None)

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

parent (QModelIndex)
parent index (unused)
Return:
number of columns
Return Type:
int

PasswordModel.data

data(index, role)

Public method to get data from the model.

index (QModelIndex)
index to get data for
role (int)
role of the data to retrieve
Return:
requested data
Return Type:
Any

PasswordModel.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

PasswordModel.removeRows

removeRows(row, count, parent=None)

Public method to remove entries from the model.

row (int)
start row
count (int)
number of rows to remove
parent (QModelIndex)
parent index
Return:
flag indicating success
Return Type:
bool

PasswordModel.rowCount

rowCount(parent=None)

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

parent (QModelIndex)
parent index
Return:
number of rows
Return Type:
int

PasswordModel.setShowPasswords

setShowPasswords(on)

Public methods to show passwords.

on (bool)
flag indicating if passwords shall be shown

PasswordModel.showPasswords

showPasswords()

Public method to indicate, if passwords shall be shown.

Return:
flag indicating if passwords shall be shown
Return Type:
bool
Up