mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-08 16:47:28 -04:00
History: print address book description if available
This commit is contained in:
@@ -68,3 +68,8 @@ quint64 AddressBook::count() const
|
||||
{
|
||||
return m_rows.size();
|
||||
}
|
||||
|
||||
int AddressBook::lookupPaymentID(const QString &payment_id) const
|
||||
{
|
||||
return m_addressBookImpl->lookupPaymentID(payment_id.toStdString());
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ public:
|
||||
quint64 count() const;
|
||||
Q_INVOKABLE QString errorString() const;
|
||||
Q_INVOKABLE int errorCode() const;
|
||||
Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const;
|
||||
|
||||
enum ErrorCode {
|
||||
Status_Ok,
|
||||
|
||||
@@ -63,6 +63,11 @@ bool AddressBookModel::deleteRow(int row)
|
||||
m_addressBook->deleteRow(row);
|
||||
}
|
||||
|
||||
int AddressBookModel::lookupPaymentID(const QString &payment_id) const
|
||||
{
|
||||
return m_addressBook->lookupPaymentID(payment_id);
|
||||
}
|
||||
|
||||
QHash<int, QByteArray> AddressBookModel::roleNames() const
|
||||
{
|
||||
QHash<int, QByteArray> roleNames = QAbstractListModel::roleNames();
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
Q_INVOKABLE bool deleteRow(int row);
|
||||
Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const;
|
||||
virtual QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user