File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
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>
9
+ #include < qt/overviewpage.h>
10
+ #include < qt/walletcontroller.h>
11
+ #include < qt/walletmodel.h>
11
12
#include < qt/walletview.h>
12
13
13
14
#include < cassert>
18
19
#include < QPushButton>
19
20
#include < QVBoxLayout>
20
21
21
- WalletFrame::WalletFrame (const PlatformStyle *_platformStyle, BitcoinGUI *_gui) :
22
- QFrame(_gui),
23
- gui(_gui),
24
- platformStyle(_platformStyle)
22
+ WalletFrame::WalletFrame (const PlatformStyle* _platformStyle, BitcoinGUI* _gui)
23
+ : QFrame(_gui),
24
+ gui(_gui),
25
+ platformStyle(_platformStyle),
26
+ m_size_hint(OverviewPage{platformStyle, 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 @@ -45,6 +45,8 @@ class WalletFrame : public QFrame
45
45
46
46
void showOutOfSyncWarning (bool fShow );
47
47
48
+ QSize sizeHint () const override { return m_size_hint; }
49
+
48
50
Q_SIGNALS:
49
51
/* * Notify that the user has requested more information about the out-of-sync warning */
50
52
void requestedSyncWarningInfo ();
@@ -59,6 +61,8 @@ class WalletFrame : public QFrame
59
61
60
62
const PlatformStyle *platformStyle;
61
63
64
+ const QSize m_size_hint;
65
+
62
66
public:
63
67
WalletView* currentWalletView () const ;
64
68
WalletModel* currentWalletModel () const ;
You can’t perform that action at this time.
0 commit comments