Split off WalletModel from ClientModel, to be able to support multi-wallets in future

This commit is contained in:
Wladimir J. van der Laan
2011-06-30 18:05:29 +02:00
parent 929eb9dc6c
commit ef079e183b
10 changed files with 261 additions and 162 deletions

View File

@@ -3,6 +3,7 @@
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "headers.h"
#include "init.h"
@@ -113,9 +114,11 @@ int main(int argc, char *argv[])
if(AppInit2(argc, argv))
{
BitcoinGUI window;
ClientModel model(pwalletMain);
ClientModel clientModel(pwalletMain);
WalletModel walletModel(pwalletMain);
guiref = &window;
window.setModel(&model);
window.setClientModel(&clientModel);
window.setWalletModel(&walletModel);
window.show();