mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Coins: remove redundant functions
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user