mirror of
https://github.com/feather-wallet/feather.git
synced 2025-04-23 20:58:13 +00:00
Coins: remove redundant functions
This commit is contained in:
parent
de499b2386
commit
e25c315226
2 changed files with 2 additions and 14 deletions
src/model
|
@ -16,16 +16,8 @@ CoinsModel::CoinsModel(QObject *parent, Coins *coins)
|
|||
: QAbstractTableModel(parent)
|
||||
, m_coins(coins)
|
||||
{
|
||||
connect(m_coins, &Coins::refreshStarted, this, &CoinsModel::startReset);
|
||||
connect(m_coins, &Coins::refreshFinished, this, &CoinsModel::endReset);
|
||||
}
|
||||
|
||||
void CoinsModel::startReset(){
|
||||
beginResetModel();
|
||||
}
|
||||
|
||||
void CoinsModel::endReset(){
|
||||
endResetModel();
|
||||
connect(m_coins, &Coins::refreshStarted, this, &CoinsModel::beginResetModel);
|
||||
connect(m_coins, &Coins::refreshFinished, this, &CoinsModel::endResetModel);
|
||||
}
|
||||
|
||||
int CoinsModel::rowCount(const QModelIndex &parent) const
|
||||
|
|
|
@ -46,10 +46,6 @@ public:
|
|||
signals:
|
||||
void descriptionChanged();
|
||||
|
||||
public slots:
|
||||
void startReset();
|
||||
void endReset();
|
||||
|
||||
private:
|
||||
QVariant parseTransactionInfo(const CoinsInfo &cInfo, int column, int role) const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue