|
|
@ -139,7 +139,7 @@ void TxTableModel::updateAllData() { |
|
|
|
if (role == Qt::ToolTipRole) { |
|
|
|
switch (index.column()) { |
|
|
|
case 0: { |
|
|
|
if (dat.memo.startsWith("zcash:")) { |
|
|
|
if (dat.memo.startsWith("pirate:")) { |
|
|
|
return Settings::paymentURIPretty(Settings::parseURI(dat.memo)); |
|
|
|
} else { |
|
|
|
return modeldata->at(index.row()).type + |
|
|
@ -161,7 +161,7 @@ void TxTableModel::updateAllData() { |
|
|
|
if (role == Qt::DecorationRole && index.column() == 0) { |
|
|
|
if (!dat.memo.isEmpty()) { |
|
|
|
// If the memo is a Payment URI, then show a payment request icon
|
|
|
|
if (dat.memo.startsWith("zcash:")) { |
|
|
|
if (dat.memo.startsWith("pirate:")) { |
|
|
|
QIcon icon(":/icons/res/paymentreq.gif"); |
|
|
|
return QVariant(icon.pixmap(16, 16)); |
|
|
|
} else { |
|
|
@ -224,4 +224,4 @@ QString TxTableModel::getType(int row) const { |
|
|
|
|
|
|
|
QString TxTableModel::getAmt(int row) const { |
|
|
|
return Settings::getDecimalString(modeldata->at(row).amount); |
|
|
|
} |
|
|
|
} |
|
|
|