Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionview.cpp
Show First 20 Lines • Show All 377 Lines • ▼ Show 20 Lines | void TransactionView::exportClicked() { | ||||
} | } | ||||
writer.addColumn(tr("Date"), 0, TransactionTableModel::DateRole); | writer.addColumn(tr("Date"), 0, TransactionTableModel::DateRole); | ||||
writer.addColumn(tr("Type"), TransactionTableModel::Type, Qt::EditRole); | writer.addColumn(tr("Type"), TransactionTableModel::Type, Qt::EditRole); | ||||
writer.addColumn(tr("Label"), 0, TransactionTableModel::LabelRole); | writer.addColumn(tr("Label"), 0, TransactionTableModel::LabelRole); | ||||
writer.addColumn(tr("Address"), 0, TransactionTableModel::AddressRole); | writer.addColumn(tr("Address"), 0, TransactionTableModel::AddressRole); | ||||
writer.addColumn(BitcoinUnits::getAmountColumnTitle( | writer.addColumn(BitcoinUnits::getAmountColumnTitle( | ||||
model->getOptionsModel()->getDisplayUnit()), | model->getOptionsModel()->getDisplayUnit()), | ||||
0, TransactionTableModel::FormattedAmountRole); | 0, TransactionTableModel::FormattedAmountRole); | ||||
writer.addColumn(tr("ID"), 0, TransactionTableModel::TxIDRole); | writer.addColumn(tr("ID"), 0, TransactionTableModel::TxHashRole); | ||||
if (!writer.write()) { | if (!writer.write()) { | ||||
Q_EMIT message(tr("Exporting Failed"), | Q_EMIT message(tr("Exporting Failed"), | ||||
tr("There was an error trying to save the transaction " | tr("There was an error trying to save the transaction " | ||||
"history to %1.") | "history to %1.") | ||||
.arg(filename), | .arg(filename), | ||||
CClientUIInterface::MSG_ERROR); | CClientUIInterface::MSG_ERROR); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void TransactionView::copyAmount() { | void TransactionView::copyAmount() { | ||||
GUIUtil::copyEntryData(transactionView, 0, | GUIUtil::copyEntryData(transactionView, 0, | ||||
TransactionTableModel::FormattedAmountRole); | TransactionTableModel::FormattedAmountRole); | ||||
} | } | ||||
void TransactionView::copyTxID() { | void TransactionView::copyTxID() { | ||||
GUIUtil::copyEntryData(transactionView, 0, TransactionTableModel::TxIDRole); | GUIUtil::copyEntryData(transactionView, 0, | ||||
TransactionTableModel::TxHashRole); | |||||
} | } | ||||
void TransactionView::copyTxHex() { | void TransactionView::copyTxHex() { | ||||
GUIUtil::copyEntryData(transactionView, 0, | GUIUtil::copyEntryData(transactionView, 0, | ||||
TransactionTableModel::TxHexRole); | TransactionTableModel::TxHexRole); | ||||
} | } | ||||
void TransactionView::copyTxPlainText() { | void TransactionView::copyTxPlainText() { | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |