From 5f50599ae7077ae9b9b56edb8892387b6ddc460a Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 19 Nov 2019 13:45:32 +0200 Subject: [PATCH] refactor: Cleanup headers from walletmodel.h --- src/qt/openuridialog.cpp | 1 - src/qt/receiverequestdialog.cpp | 1 + src/qt/receiverequestdialog.h | 3 ++- src/qt/recentrequeststablemodel.cpp | 1 + src/qt/recentrequeststablemodel.h | 3 ++- src/qt/sendcoinsentry.cpp | 1 + src/qt/sendcoinsentry.h | 5 ++++- src/qt/walletcontroller.cpp | 7 ++++--- src/qt/walletcontroller.h | 3 ++- 9 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/qt/openuridialog.cpp b/src/qt/openuridialog.cpp index d9ed498d7cb..6a0143ac7e2 100644 --- a/src/qt/openuridialog.cpp +++ b/src/qt/openuridialog.cpp @@ -7,7 +7,6 @@ #include #include -#include #include diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp index e4925020029..2674c9b9532 100644 --- a/src/qt/receiverequestdialog.cpp +++ b/src/qt/receiverequestdialog.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/src/qt/receiverequestdialog.h b/src/qt/receiverequestdialog.h index ece1e2e9de5..1bb43ce6d18 100644 --- a/src/qt/receiverequestdialog.h +++ b/src/qt/receiverequestdialog.h @@ -6,10 +6,11 @@ #define BITCOIN_QT_RECEIVEREQUESTDIALOG_H #include -#include #include +class WalletModel; + namespace Ui { class ReceiveRequestDialog; } diff --git a/src/qt/recentrequeststablemodel.cpp b/src/qt/recentrequeststablemodel.cpp index 1611ec823cc..6d933f46d6e 100644 --- a/src/qt/recentrequeststablemodel.cpp +++ b/src/qt/recentrequeststablemodel.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include diff --git a/src/qt/recentrequeststablemodel.h b/src/qt/recentrequeststablemodel.h index a772db293d4..30578b7a03c 100644 --- a/src/qt/recentrequeststablemodel.h +++ b/src/qt/recentrequeststablemodel.h @@ -6,12 +6,13 @@ #define BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H #include -#include #include #include #include +class WalletModel; + class RecentRequestEntry { public: diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index be417655b41..ad37e091142 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include diff --git a/src/qt/sendcoinsentry.h b/src/qt/sendcoinsentry.h index 7b4b2120ef3..aa69d30f997 100644 --- a/src/qt/sendcoinsentry.h +++ b/src/qt/sendcoinsentry.h @@ -6,13 +6,16 @@ #define BITCOIN_QT_SENDCOINSENTRY_H #include -#include #include class WalletModel; class PlatformStyle; +namespace interfaces { +class Node; +} // namespace interfaces + namespace Ui { class SendCoinsEntry; } diff --git a/src/qt/walletcontroller.cpp b/src/qt/walletcontroller.cpp index 4c253f8dddf..7413a1f09e3 100644 --- a/src/qt/walletcontroller.cpp +++ b/src/qt/walletcontroller.cpp @@ -2,17 +2,18 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include + #include #include #include #include -#include - -#include +#include #include #include #include +#include #include diff --git a/src/qt/walletcontroller.h b/src/qt/walletcontroller.h index 2c5783c0941..956245775e9 100644 --- a/src/qt/walletcontroller.h +++ b/src/qt/walletcontroller.h @@ -6,7 +6,6 @@ #define BITCOIN_QT_WALLETCONTROLLER_H #include -#include #include #include @@ -24,10 +23,12 @@ class OptionsModel; class PlatformStyle; +class WalletModel; namespace interfaces { class Handler; class Node; +class Wallet; } // namespace interfaces class AskPassphraseDialog;