From: tobtoht Date: Wed, 12 Mar 2025 20:01:18 +0000 (+0100) Subject: Coins: remove redundant functions X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=e25c315226d6f4537a16e5685c8c7ebd5dbb439e;p=gamesguru%2Ffeather.git Coins: remove redundant functions --- diff --git a/src/model/CoinsModel.cpp b/src/model/CoinsModel.cpp index 938316da..c3d5230c 100644 --- a/src/model/CoinsModel.cpp +++ b/src/model/CoinsModel.cpp @@ -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 diff --git a/src/model/CoinsModel.h b/src/model/CoinsModel.h index 47afb7e9..827724b4 100644 --- a/src/model/CoinsModel.h +++ b/src/model/CoinsModel.h @@ -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;