Bitcoin-Qt: setup testnet GUI directly
- this directly sets up all GUI elements that have testnet special-casing without first setting up main net stuff and changing afterwards (titles, icons etc.) - also fixes 2 wrong icons shown during testnet usage on our toolbar
This commit is contained in:
@@ -43,7 +43,7 @@ class BitcoinGUI : public QMainWindow
|
||||
public:
|
||||
static const QString DEFAULT_WALLET;
|
||||
|
||||
explicit BitcoinGUI(QWidget *parent = 0);
|
||||
explicit BitcoinGUI(bool fIsTestnet = false, QWidget *parent = 0);
|
||||
~BitcoinGUI();
|
||||
|
||||
/** Set the client model.
|
||||
@@ -113,13 +113,13 @@ private:
|
||||
int prevBlocks;
|
||||
|
||||
/** Create the main UI actions. */
|
||||
void createActions();
|
||||
void createActions(bool fIsTestnet);
|
||||
/** Create the menu bar and sub-menus. */
|
||||
void createMenuBar();
|
||||
/** Create the toolbars */
|
||||
void createToolBars();
|
||||
/** Create system tray icon and notification */
|
||||
void createTrayIcon();
|
||||
void createTrayIcon(bool fIsTestnet);
|
||||
/** Create system tray menu (or setup the dock menu) */
|
||||
void createTrayIconMenu();
|
||||
/** Save window size and position */
|
||||
|
||||
Reference in New Issue
Block a user