mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
AddressBook: remove lookupPaymentID
This commit is contained in:
parent
0ba485c9de
commit
029200840a
4 changed files with 3 additions and 17 deletions
|
@ -116,13 +116,6 @@ quint64 AddressBook::count() const
|
|||
return m_rows.size();
|
||||
}
|
||||
|
||||
int AddressBook::lookupPaymentID(const QString &payment_id) const
|
||||
{
|
||||
QReadLocker locker(&m_lock);
|
||||
|
||||
return m_addressBookImpl->lookupPaymentID(payment_id.toStdString());
|
||||
}
|
||||
|
||||
QString AddressBook::getDescription(const QString &address) const
|
||||
{
|
||||
QReadLocker locker(&m_lock);
|
||||
|
|
|
@ -28,7 +28,6 @@ public:
|
|||
quint64 count() const;
|
||||
Q_INVOKABLE QString errorString() const;
|
||||
Q_INVOKABLE int errorCode() const;
|
||||
Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const;
|
||||
Q_INVOKABLE QString getDescription(const QString &address) const;
|
||||
|
||||
enum ErrorCode {
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include "utils/Icons.h"
|
||||
|
||||
AddressBookModel::AddressBookModel(QObject *parent, AddressBook *addressBook)
|
||||
: QAbstractTableModel(parent),
|
||||
m_addressBook(addressBook),
|
||||
m_showFullAddresses(false)
|
||||
: QAbstractTableModel(parent)
|
||||
, m_addressBook(addressBook)
|
||||
, m_showFullAddresses(false)
|
||||
{
|
||||
connect(m_addressBook, &AddressBook::refreshStarted, this, &AddressBookModel::startReset);
|
||||
connect(m_addressBook, &AddressBook::refreshFinished, this, &AddressBookModel::endReset);
|
||||
|
@ -150,11 +150,6 @@ bool AddressBookModel::deleteRow(int row)
|
|||
return m_addressBook->deleteRow(row);
|
||||
}
|
||||
|
||||
int AddressBookModel::lookupPaymentID(const QString &payment_id) const
|
||||
{
|
||||
return m_addressBook->lookupPaymentID(payment_id);
|
||||
}
|
||||
|
||||
bool AddressBookModel::writeCSV(const QString &path) {
|
||||
QString csv = "";
|
||||
for(int i = 0; i < this->rowCount(); i++) {
|
||||
|
|
|
@ -31,7 +31,6 @@ public:
|
|||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||
|
||||
Q_INVOKABLE bool deleteRow(int row);
|
||||
Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const;
|
||||
|
||||
bool isShowFullAddresses() const;
|
||||
void setShowFullAddresses(bool show);
|
||||
|
|
Loading…
Reference in a new issue