Changeset View
Changeset View
Standalone View
Standalone View
src/qt/addresstablemodel.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | public: | ||||
/**< Specifies send address */ | /**< Specifies send address */ | ||||
static const QString Send; | static const QString Send; | ||||
/**< Specifies receive address */ | /**< Specifies receive address */ | ||||
static const QString Receive; | static const QString Receive; | ||||
/** @name Methods overridden from QAbstractTableModel | /** @name Methods overridden from QAbstractTableModel | ||||
@{*/ | @{*/ | ||||
int rowCount(const QModelIndex &parent) const; | int rowCount(const QModelIndex &parent) const override; | ||||
int columnCount(const QModelIndex &parent) const; | int columnCount(const QModelIndex &parent) const override; | ||||
QVariant data(const QModelIndex &index, int role) const; | QVariant data(const QModelIndex &index, int role) const override; | ||||
bool setData(const QModelIndex &index, const QVariant &value, int role); | bool setData(const QModelIndex &index, const QVariant &value, | ||||
int role) override; | |||||
QVariant headerData(int section, Qt::Orientation orientation, | QVariant headerData(int section, Qt::Orientation orientation, | ||||
int role) const; | int role) const override; | ||||
QModelIndex index(int row, int column, const QModelIndex &parent) const; | QModelIndex index(int row, int column, | ||||
const QModelIndex &parent) const override; | |||||
bool removeRows(int row, int count, | bool removeRows(int row, int count, | ||||
const QModelIndex &parent = QModelIndex()); | const QModelIndex &parent = QModelIndex()) override; | ||||
Qt::ItemFlags flags(const QModelIndex &index) const; | Qt::ItemFlags flags(const QModelIndex &index) const override; | ||||
/*@}*/ | /*@}*/ | ||||
/* Add an address to the model. | /* Add an address to the model. | ||||
Returns the added address on success, and an empty string otherwise. | Returns the added address on success, and an empty string otherwise. | ||||
*/ | */ | ||||
QString addRow(const QString &type, const QString &label, | QString addRow(const QString &type, const QString &label, | ||||
const QString &address); | const QString &address); | ||||
Show All 32 Lines |