diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index d47fe2bb2b6dfe..64409e4d520fb7 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 2a0d2114823073..f243e9f785580a 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;