File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include < qt/createwalletdialog.h>
6
- #include < qt/walletcontroller.h>
7
5
#include < qt/walletframe.h>
8
- #include < qt/walletmodel.h>
9
6
10
7
#include < qt/bitcoingui.h>
8
+ #include < qt/createwalletdialog.h>
11
9
#include < qt/governancelist.h>
12
10
#include < qt/masternodelist.h>
11
+ #include < qt/overviewpage.h>
12
+ #include < qt/walletcontroller.h>
13
+ #include < qt/walletmodel.h>
13
14
#include < qt/walletview.h>
14
15
15
16
#include < cassert>
19
20
#include < QPushButton>
20
21
#include < QVBoxLayout>
21
22
22
- WalletFrame::WalletFrame (BitcoinGUI* _gui) :
23
- QFrame(_gui),
24
- gui(_gui)
23
+ WalletFrame::WalletFrame (BitcoinGUI* _gui)
24
+ : QFrame(_gui),
25
+ gui(_gui),
26
+ m_size_hint(OverviewPage{nullptr }.sizeHint())
25
27
{
26
28
// Leave HBox hook for adding a list view later
27
29
QHBoxLayout *walletFrameLayout = new QHBoxLayout (this );
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ class WalletFrame : public QFrame
47
47
48
48
void showOutOfSyncWarning (bool fShow );
49
49
50
+ QSize sizeHint () const override { return m_size_hint; }
51
+
50
52
Q_SIGNALS:
51
53
/* * Notify that the user has requested more information about the out-of-sync warning */
52
54
void requestedSyncWarningInfo ();
@@ -62,6 +64,8 @@ class WalletFrame : public QFrame
62
64
63
65
bool bOutOfSync;
64
66
67
+ const QSize m_size_hint;
68
+
65
69
public:
66
70
WalletView* currentWalletView () const ;
67
71
WalletModel* currentWalletModel () const ;
You can’t perform that action at this time.
0 commit comments