aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletframe.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-25 21:12:58 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-25 21:17:18 +0200
commit7b2e42ecc4bddb5504665d6932dc5ffdbd3b593e (patch)
tree6455e0041a9d7da871395b8cc3a357c9b9df53e4 /src/qt/walletframe.h
parentd67883d01e507dd22d1281f4a4860e79d6a46a47 (diff)
qt: Add WalletFrame::sizeHint
This change makes the layout of a WalletFrame widget correct even without loaded wallets.
Diffstat (limited to 'src/qt/walletframe.h')
-rw-r--r--src/qt/walletframe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/walletframe.h b/src/qt/walletframe.h
index 2b5f263468..e2fa8055bd 100644
--- a/src/qt/walletframe.h
+++ b/src/qt/walletframe.h
@@ -45,6 +45,8 @@ public:
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();
@@ -59,6 +61,8 @@ private:
const PlatformStyle *platformStyle;
+ const QSize m_size_hint;
+
public:
WalletView* currentWalletView() const;
WalletModel* currentWalletModel() const;