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.
This commit is contained in:
Wladimir J. van der Laan
2013-10-18 18:05:26 +02:00
parent 81cab378cc
commit 26702e6930
7 changed files with 106 additions and 324 deletions

View File

@@ -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 */