mirror of
				https://git.wownero.com/wowlet/wowlet.git
				synced 2024-08-15 01:03:14 +00:00 
			
		
		
		
	Apply currency formatting to fiat column in transaction history
This commit is contained in:
		
							parent
							
								
									e058f3bad1
								
							
						
					
					
						commit
						4c9ece5025
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -169,7 +169,7 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
 | 
				
			||||||
                usd_amount = AppContext::prices->convert("USD", this->preferredFiatSymbol, usd_amount);
 | 
					                usd_amount = AppContext::prices->convert("USD", this->preferredFiatSymbol, usd_amount);
 | 
				
			||||||
            double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;
 | 
					            double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return QString("%1%2").arg(this->preferredFiatSign).arg(QString::number(fiat_rounded));
 | 
					            return QString("%1").arg(Utils::amountToCurrencyString(fiat_rounded, this->preferredFiatSymbol));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
| 
						 | 
					@ -239,4 +239,4 @@ Qt::ItemFlags TransactionHistoryModel::flags(const QModelIndex &index) const {
 | 
				
			||||||
        return QAbstractTableModel::flags(index) | Qt::ItemIsEditable;
 | 
					        return QAbstractTableModel::flags(index) | Qt::ItemIsEditable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return QAbstractTableModel::flags(index);
 | 
					    return QAbstractTableModel::flags(index);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue