Model-class for helping display of shared binary blobs, usually from a profile.
More...
#include <binaryfilelistingmodel.h>
Model-class for helping display of shared binary blobs, usually from a profile.
◆ BinaryFileListingModel()
BinaryFileListingModel::BinaryFileListingModel |
( |
QList< Hash > & |
aFilesToList | ) |
|
◆ ~BinaryFileListingModel()
BinaryFileListingModel::~BinaryFileListingModel |
( |
| ) |
|
◆ addFile()
void BinaryFileListingModel::addFile |
( |
const Hash & |
aFingerPrint | ) |
|
method for removing a reader. too.
- Parameters
-
aFingerPrint | is fingerprint of the file to add |
◆ clear()
void BinaryFileListingModel::clear |
( |
| ) |
|
method for emptying model contents when viewed profile changes
◆ columnCount()
virtual int BinaryFileListingModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- number of columns in model
◆ data()
virtual QVariant BinaryFileListingModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- data to display in list
◆ error
◆ fileDisplayNameByFingerPrint()
QString BinaryFileListingModel::fileDisplayNameByFingerPrint |
( |
const Hash & |
aFingerPrint | ) |
|
method for retrieving display-name of a file
◆ headerData()
virtual QVariant BinaryFileListingModel::headerData |
( |
int |
aSection, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
virtual |
◆ removeFile()
void BinaryFileListingModel::removeFile |
( |
const Hash & |
aFingerPrint | ) |
|
method for removing a file. too.
- Parameters
-
aFingerPrint | is fingerprint of the file to remove |
◆ rowCount()
virtual int BinaryFileListingModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- number of rows in list
◆ updateFileDataInArray()
void BinaryFileListingModel::updateFileDataInArray |
( |
const Hash & |
aFingerPrint, |
|
|
bool |
aEmit |
|
) |
| |
|
private |
◆ iFilesToList
QList<Hash>& BinaryFileListingModel::iFilesToList |
|
private |
◆ iNamesAndFingerPrints
QList<QPair<Hash,QString> > BinaryFileListingModel::iNamesAndFingerPrints |
|
private |
The documentation for this class was generated from the following file: