mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Full support for other units, add configuration option for default unit (used when displaying amounts)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "bitcoingui.h"
|
||||
#include "clientmodel.h"
|
||||
#include "walletmodel.h"
|
||||
#include "optionsmodel.h"
|
||||
#include "qtwin.h"
|
||||
|
||||
#include "headers.h"
|
||||
@@ -118,8 +119,9 @@ int main(int argc, char *argv[])
|
||||
// Put this in a block, so that BitcoinGUI is cleaned up properly before
|
||||
// calling shutdown.
|
||||
BitcoinGUI window;
|
||||
ClientModel clientModel(pwalletMain);
|
||||
WalletModel walletModel(pwalletMain);
|
||||
OptionsModel optionsModel(pwalletMain);
|
||||
ClientModel clientModel(&optionsModel);
|
||||
WalletModel walletModel(pwalletMain, &optionsModel);
|
||||
|
||||
guiref = &window;
|
||||
window.setClientModel(&clientModel);
|
||||
|
||||
Reference in New Issue
Block a user