mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
qt, refactor: Make BitcoinUnits::Unit a scoped enum
This commit is contained in:
committed by
William Casarin
parent
75832fdc37
commit
aa23960fdf
@@ -56,7 +56,7 @@ public:
|
||||
ProxyUseTor, // bool
|
||||
ProxyIPTor, // QString
|
||||
ProxyPortTor, // int
|
||||
DisplayUnit, // BitcoinUnits::Unit
|
||||
DisplayUnit, // BitcoinUnit
|
||||
ThirdPartyTxUrls, // QString
|
||||
Language, // QString
|
||||
UseEmbeddedMonospacedFont, // bool
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
bool getShowTrayIcon() const { return m_show_tray_icon; }
|
||||
bool getMinimizeToTray() const { return fMinimizeToTray; }
|
||||
bool getMinimizeOnClose() const { return fMinimizeOnClose; }
|
||||
int getDisplayUnit() const { return static_cast<int>(m_display_bitcoin_unit); }
|
||||
BitcoinUnit getDisplayUnit() const { return m_display_bitcoin_unit; }
|
||||
QString getThirdPartyTxUrls() const { return strThirdPartyTxUrls; }
|
||||
bool getUseEmbeddedMonospacedFont() const { return m_use_embedded_monospaced_font; }
|
||||
bool getCoinControlFeatures() const { return fCoinControlFeatures; }
|
||||
@@ -128,7 +128,7 @@ private:
|
||||
// Check settings version and upgrade default values if required
|
||||
void checkAndMigrate();
|
||||
Q_SIGNALS:
|
||||
void displayUnitChanged(int unit);
|
||||
void displayUnitChanged(BitcoinUnit unit);
|
||||
void coinControlFeaturesChanged(bool);
|
||||
void showTrayIconChanged(bool);
|
||||
void useEmbeddedMonospacedFontChanged(bool);
|
||||
|
||||
Reference in New Issue
Block a user