HexFileModel Class Reference

Model providing data for the table of the hex widget. More...

#include <hexfilemodel.h>

List of all members.

Public Slots

void setFile (const QString &path)
void changeData (qint64 pos)
void changeData (qint64 pos1, qint64 pos2)
void focusIn ()
void focusOut ()

Public Member Functions

 HexFileModel (QWidget *parent)
QModelIndex modelIndex (qint64 pos) const
qint64 position (QModelIndex i) const
qint64 search (QByteArray pattern, qint64 beginningPos)
int rowCount (const QModelIndex &parent=QModelIndex()) const override
int columnCount (const QModelIndex &parent=QModelIndex()) const override
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Qt::ItemFlags flags (const QModelIndex &index) const override

Public Attributes

qint64 focusPosition
bool focused
qint64 hlPosition
qint64 hlSize

Detailed Description

Model providing data for the table of the hex widget.

Constructor & Destructor Documentation

HexFileModel::HexFileModel ( QWidget *  parent)

Member Function Documentation

void HexFileModel::changeData ( qint64  pos) [slot]
void HexFileModel::changeData ( qint64  pos1,
qint64  pos2 
) [slot]
int HexFileModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const [override]
QVariant HexFileModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [override]
Qt::ItemFlags HexFileModel::flags ( const QModelIndex &  index) const [override]
void HexFileModel::focusIn ( ) [slot]
void HexFileModel::focusOut ( ) [slot]
QVariant HexFileModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const [override]
QModelIndex HexFileModel::modelIndex ( qint64  pos) const
qint64 HexFileModel::position ( QModelIndex  i) const
int HexFileModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const [override]
qint64 HexFileModel::search ( QByteArray  pattern,
qint64  beginningPos 
void HexFileModel::setFile ( const QString &  path) [slot]

Member Data Documentation

The documentation for this class was generated from the following file: