diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index 77ca7b5df4f858..727974ebd20aa8 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -2,14 +2,15 @@ // 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 @@ -19,9 +20,10 @@ #include #include -WalletFrame::WalletFrame(BitcoinGUI* _gui) : - QFrame(_gui), - gui(_gui) +WalletFrame::WalletFrame(BitcoinGUI* _gui) + : QFrame(_gui), + gui(_gui), + m_size_hint(OverviewPage{nullptr}.sizeHint()) { // Leave HBox hook for adding a list view later QHBoxLayout *walletFrameLayout = new QHBoxLayout(this); diff --git a/src/qt/walletframe.h b/src/qt/walletframe.h index 96ca4995810fe6..df2d848ad56f52 100644 --- a/src/qt/walletframe.h +++ b/src/qt/walletframe.h @@ -47,6 +47,8 @@ class WalletFrame : public QFrame void showOutOfSyncWarning(bool fShow); + QSize sizeHint() const override { return m_size_hint; } + Q_SIGNALS: /** Notify that the user has requested more information about the out-of-sync warning */ void requestedSyncWarningInfo(); @@ -62,6 +64,8 @@ class WalletFrame : public QFrame bool bOutOfSync; + const QSize m_size_hint; + public: WalletView* currentWalletView() const; WalletModel* currentWalletModel() const;