Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 665 Lines • ▼ Show 20 Lines | if (orientation == Qt::Horizontal) { | ||||
} | } | ||||
} | } | ||||
return QVariant(); | return QVariant(); | ||||
} | } | ||||
QModelIndex TransactionTableModel::index(int row, int column, | QModelIndex TransactionTableModel::index(int row, int column, | ||||
const QModelIndex &parent) const { | const QModelIndex &parent) const { | ||||
Q_UNUSED(parent); | Q_UNUSED(parent); | ||||
TransactionRecord *data = priv->index( | TransactionRecord *data = | ||||
walletModel->wallet(), walletModel->clientModel().getNumBlocks(), row); | priv->index(walletModel->wallet(), walletModel->getNumBlocks(), row); | ||||
if (data) { | if (data) { | ||||
return createIndex(row, column, data); | return createIndex(row, column, data); | ||||
} | } | ||||
return QModelIndex(); | return QModelIndex(); | ||||
} | } | ||||
void TransactionTableModel::updateDisplayUnit() { | void TransactionTableModel::updateDisplayUnit() { | ||||
// emit dataChanged to update Amount column with the current unit | // emit dataChanged to update Amount column with the current unit | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |