refactor: move ModelUtils into Utils

This commit is contained in:
tobtoht
2023-03-28 22:42:12 +02:00
parent 8fd583a649
commit 0abd323bbb
21 changed files with 86 additions and 114 deletions
+3 -3
View File
@@ -9,8 +9,8 @@
#include "dialog/PaymentRequestDialog.h"
#include "dialog/QrCodeDialog.h"
#include "model/ModelUtils.h"
#include "utils/Icons.h"
#include "utils/Utils.h"
ReceiveWidget::ReceiveWidget(Wallet *wallet, QWidget *parent)
: QWidget(parent)
@@ -74,12 +74,12 @@ void ReceiveWidget::focusSearchbar() {
void ReceiveWidget::copyAddress() {
QModelIndex index = ui->addresses->currentIndex();
ModelUtils::copyColumn(&index, SubaddressModel::Address);
Utils::copyColumn(&index, SubaddressModel::Address);
}
void ReceiveWidget::copyLabel() {
QModelIndex index = ui->addresses->currentIndex();
ModelUtils::copyColumn(&index, SubaddressModel::Label);
Utils::copyColumn(&index, SubaddressModel::Label);
}
void ReceiveWidget::editLabel() {