diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-18 18:05:26 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-18 18:06:19 +0200 |
commit | 26702e6930519c7d063796f2572a5b4ef5f29b06 (patch) | |
tree | 68f0f4bed9553ba7e926b9e954147c9299ab16b9 /src/qt/walletframe.h | |
parent | 81cab378cc351eb0e176dd7733a29df931d4f877 (diff) |
qt: merge walletstack and walletframe
There were too many levels of indirection here, and the functionality of
walletframe and walletstack can easily be merged. This commit
merges the two which cuts a lot of lines of boilerplate code.
Diffstat (limited to 'src/qt/walletframe.h')
-rw-r--r-- | src/qt/walletframe.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/qt/walletframe.h b/src/qt/walletframe.h index eaae053ccd..4cc6d14e41 100644 --- a/src/qt/walletframe.h +++ b/src/qt/walletframe.h @@ -8,12 +8,17 @@ #define WALLETFRAME_H #include <QFrame> +#include <QMap> class BitcoinGUI; class ClientModel; class SendCoinsRecipient; class WalletModel; -class WalletStack; +class WalletView; + +QT_BEGIN_NAMESPACE +class QStackedWidget; +QT_END_NAMESPACE class WalletFrame : public QFrame { @@ -35,7 +40,12 @@ public: void showOutOfSyncWarning(bool fShow); private: - WalletStack *walletStack; + QStackedWidget *walletStack; + BitcoinGUI *gui; + ClientModel *clientModel; + QMap<QString, WalletView*> mapWalletViews; + + bool bOutOfSync; public slots: /** Switch to overview (home) page */ |