Add Q_OBJECT macros

This commit is contained in:
onryo
2023-02-24 08:42:39 +01:00
parent 7dbe92e848
commit c50588713a
7 changed files with 29 additions and 8 deletions

View File

@@ -11,6 +11,8 @@ class MainWindow;
class AddressBookModel : public QAbstractTableModel { class AddressBookModel : public QAbstractTableModel {
Q_OBJECT
public: public:
AddressBookModel(QTableView* parent); AddressBookModel(QTableView* parent);
~AddressBookModel(); ~AddressBookModel();

View File

@@ -8,8 +8,10 @@
#include "camount.h" #include "camount.h"
class BalancesTableModel : public QAbstractTableModel class BalancesTableModel : public QAbstractTableModel {
{
Q_OBJECT
public: public:
BalancesTableModel(QObject* parent); BalancesTableModel(QObject* parent);
~BalancesTableModel(); ~BalancesTableModel();

View File

@@ -29,8 +29,10 @@ struct WatchedTx {
}; };
class Controller class Controller {
{
Q_OBJECT
public: public:
Controller(MainWindow* main); Controller(MainWindow* main);
~Controller(); ~Controller();

View File

@@ -9,8 +9,7 @@
#include "ui_newwallet.h" #include "ui_newwallet.h"
#include "mainwindow.h" #include "mainwindow.h"
class FirstTimeWizard: public QWizard class FirstTimeWizard: public QWizard {
{
Q_OBJECT Q_OBJECT
@@ -51,6 +50,8 @@ private:
class NewOrRestorePage: public QWizardPage { class NewOrRestorePage: public QWizardPage {
Q_OBJECT
public: public:
NewOrRestorePage(FirstTimeWizard* parent); NewOrRestorePage(FirstTimeWizard* parent);
@@ -65,6 +66,9 @@ private:
class NewSeedPage: public QWizardPage { class NewSeedPage: public QWizardPage {
Q_OBJECT
public: public:
NewSeedPage(FirstTimeWizard* parent); NewSeedPage(FirstTimeWizard* parent);
@@ -80,6 +84,9 @@ private:
class RestoreSeedPage: public QWizardPage { class RestoreSeedPage: public QWizardPage {
Q_OBJECT
public: public:
RestoreSeedPage(FirstTimeWizard* parent); RestoreSeedPage(FirstTimeWizard* parent);

View File

@@ -5,8 +5,10 @@
#include "precompiled.h" #include "precompiled.h"
class MemoEdit : public QPlainTextEdit class MemoEdit : public QPlainTextEdit {
{
Q_OBJECT
public: public:
MemoEdit(QWidget* parent); MemoEdit(QWidget* parent);

View File

@@ -121,6 +121,8 @@ private:
// Model for list of configured recurring payments // Model for list of configured recurring payments
class RecurringListViewModel : public QAbstractTableModel { class RecurringListViewModel : public QAbstractTableModel {
Q_OBJECT
public: public:
RecurringListViewModel(QTableView* parent); RecurringListViewModel(QTableView* parent);
~RecurringListViewModel() = default; ~RecurringListViewModel() = default;
@@ -138,6 +140,8 @@ private:
// Model for history of payments // Model for history of payments
class RecurringPaymentsListViewModel : public QAbstractTableModel { class RecurringPaymentsListViewModel : public QAbstractTableModel {
Q_OBJECT
public: public:
RecurringPaymentsListViewModel(QTableView* parent, RecurringPaymentInfo rpi); RecurringPaymentsListViewModel(QTableView* parent, RecurringPaymentInfo rpi);
~RecurringPaymentsListViewModel() = default; ~RecurringPaymentsListViewModel() = default;

View File

@@ -8,6 +8,8 @@
class ViewAllAddressesModel : public QAbstractTableModel { class ViewAllAddressesModel : public QAbstractTableModel {
Q_OBJECT
public: public:
ViewAllAddressesModel(QTableView* parent, QList<QString> taddrs, Controller* rpc); ViewAllAddressesModel(QTableView* parent, QList<QString> taddrs, Controller* rpc);
~ViewAllAddressesModel() = default; ~ViewAllAddressesModel() = default;