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/ContactsDialog.h"
#include "libwalletqt/AddressBook.h"
#include "libwalletqt/WalletManager.h"
#include "model/ModelUtils.h"
#include "utils/Icons.h"
#include "utils/Utils.h"
ContactsWidget::ContactsWidget(Wallet *wallet, QWidget *parent)
: QWidget(parent)
@@ -85,12 +85,12 @@ void ContactsWidget::focusSearchbar() {
void ContactsWidget::copyAddress() {
QModelIndex index = ui->contacts->currentIndex();
ModelUtils::copyColumn(&index, AddressBookModel::Address);
Utils::copyColumn(&index, AddressBookModel::Address);
}
void ContactsWidget::copyName() {
QModelIndex index = ui->contacts->currentIndex();
ModelUtils::copyColumn(&index, AddressBookModel::Description);
Utils::copyColumn(&index, AddressBookModel::Description);
}
void ContactsWidget::payTo() {