![]() |
Bitcoin Core
26.1.0
P2P Digital Currency
|
Interface from Qt to configuration data structure for Bitcoin client. More...
#include <optionsmodel.h>
Signals | |
| void | displayUnitChanged (BitcoinUnit unit) |
| void | coinControlFeaturesChanged (bool) |
| void | showTrayIconChanged (bool) |
| void | useEmbeddedMonospacedFontChanged (bool) |
Public Member Functions | |
| OptionsModel (interfaces::Node &node, QObject *parent=nullptr) | |
| bool | Init (bilingual_str &error) |
| void | Reset () |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| QVariant | getOption (OptionID option, const std::string &suffix="") const |
| bool | setOption (OptionID option, const QVariant &value, const std::string &suffix="") |
| void | setDisplayUnit (const QVariant &new_unit) |
| Updates current unit in memory, settings and emits displayUnitChanged(new_unit) signal. More... | |
| bool | getShowTrayIcon () const |
| bool | getMinimizeToTray () const |
| bool | getMinimizeOnClose () const |
| BitcoinUnit | getDisplayUnit () const |
| QString | getThirdPartyTxUrls () const |
| bool | getUseEmbeddedMonospacedFont () const |
| bool | getCoinControlFeatures () const |
| bool | getSubFeeFromAmount () const |
| bool | getEnablePSBTControls () const |
| const QString & | getOverriddenByCommandLine () |
| bool | hasSigner () |
| Whether -signer was set or not. More... | |
| void | SetPruneTargetGB (int prune_target_gb) |
| void | setRestartRequired (bool fRequired) |
| bool | isRestartRequired () const |
| interfaces::Node & | node () const |
Private Member Functions | |
| void | addOverriddenOption (const std::string &option) |
| void | checkAndMigrate () |
Private Attributes | |
| interfaces::Node & | m_node |
| bool | m_show_tray_icon |
| bool | fMinimizeToTray |
| bool | fMinimizeOnClose |
| QString | language |
| BitcoinUnit | m_display_bitcoin_unit |
| QString | strThirdPartyTxUrls |
| bool | m_use_embedded_monospaced_font |
| bool | fCoinControlFeatures |
| bool | m_sub_fee_from_amount |
| bool | m_enable_psbt_controls |
| bool | m_mask_values |
| QString | strOverriddenByCommandLine |
Interface from Qt to configuration data structure for Bitcoin client.
To Qt, the options are presented as a list with the different options laid out vertically. This can be changed to a tree once the settings become sufficiently complex.
Definition at line 40 of file optionsmodel.h.
Definition at line 47 of file optionsmodel.h.
|
explicit |
Definition at line 121 of file optionsmodel.cpp.
|
private |
Definition at line 126 of file optionsmodel.cpp.
|
private |
Definition at line 677 of file optionsmodel.cpp.
|
signal |
|
override |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| QVariant OptionsModel::getOption | ( | OptionID | option, |
| const std::string & | suffix = "" |
||
| ) | const |
Definition at line 362 of file optionsmodel.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool OptionsModel::hasSigner | ( | ) |
Whether -signer was set or not.
Definition at line 672 of file optionsmodel.cpp.
| bool OptionsModel::Init | ( | bilingual_str & | error | ) |
Definition at line 132 of file optionsmodel.cpp.
| bool OptionsModel::isRestartRequired | ( | ) | const |
|
inline |
| void OptionsModel::Reset | ( | ) |
Definition at line 248 of file optionsmodel.cpp.
|
override |
Definition at line 276 of file optionsmodel.cpp.
|
override |
| void OptionsModel::setDisplayUnit | ( | const QVariant & | new_unit | ) |
Updates current unit in memory, settings and emits displayUnitChanged(new_unit) signal.
Definition at line 651 of file optionsmodel.cpp.
| bool OptionsModel::setOption | ( | OptionID | option, |
| const QVariant & | value, | ||
| const std::string & | suffix = "" |
||
| ) |
Definition at line 457 of file optionsmodel.cpp.
| void OptionsModel::SetPruneTargetGB | ( | int | prune_target_gb | ) |
Definition at line 312 of file optionsmodel.cpp.
| void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
signal |
|
signal |
|
private |
Definition at line 124 of file optionsmodel.h.
|
private |
Definition at line 119 of file optionsmodel.h.
|
private |
Definition at line 118 of file optionsmodel.h.
|
private |
Definition at line 120 of file optionsmodel.h.
|
private |
Definition at line 121 of file optionsmodel.h.
|
private |
Definition at line 126 of file optionsmodel.h.
|
private |
Definition at line 127 of file optionsmodel.h.
|
private |
Definition at line 115 of file optionsmodel.h.
|
private |
Definition at line 117 of file optionsmodel.h.
|
private |
Definition at line 125 of file optionsmodel.h.
|
private |
Definition at line 123 of file optionsmodel.h.
|
private |
Definition at line 130 of file optionsmodel.h.
|
private |
Definition at line 122 of file optionsmodel.h.
1.8.14