Bitcoin-Qt: fix GUI after initial multi-wallet patch
- adds 6 methods in BitcoinGUI to access some actions needed by the new
WalletView class
- updates WalletView class to use these instead of trying to duplicate
these
- cleanup walletview.{cpp/h} and remove all unneeded stuff
- this fixes problems with tabs toolbar (#2451) and export broken (#2436)
- more details in #2447
This commit is contained in:
@@ -29,6 +29,7 @@ class QStackedWidget;
|
||||
class QUrl;
|
||||
class QListWidget;
|
||||
class QPushButton;
|
||||
class QAction;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
/**
|
||||
@@ -41,7 +42,7 @@ class BitcoinGUI : public QMainWindow
|
||||
|
||||
public:
|
||||
static const QString DEFAULT_WALLET;
|
||||
|
||||
|
||||
explicit BitcoinGUI(QWidget *parent = 0);
|
||||
~BitcoinGUI();
|
||||
|
||||
@@ -56,9 +57,17 @@ public:
|
||||
|
||||
bool addWallet(const QString& name, WalletModel *walletModel);
|
||||
bool setCurrentWallet(const QString& name);
|
||||
|
||||
|
||||
void removeAllWallets();
|
||||
|
||||
/** Used by WalletView to allow access to needed QActions */
|
||||
QAction * getOverviewAction() { return overviewAction; }
|
||||
QAction * getHistoryAction() { return historyAction; }
|
||||
QAction * getAddressBookAction() { return addressBookAction; }
|
||||
QAction * getReceiveCoinsAction() { return receiveCoinsAction; }
|
||||
QAction * getSendCoinsAction() { return sendCoinsAction; }
|
||||
QAction * getExportAction() { return exportAction; }
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
||||
Reference in New Issue
Block a user