![]() |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Interface from Qt to configuration data structure for Bitcoin client. More...
#include <optionsmodel.h>
Signals | |
void | displayUnitChanged (int unit) |
void | coinControlFeaturesChanged (bool) |
void | showTrayIconChanged (bool) |
void | useEmbeddedMonospacedFontChanged (bool) |
Public Member Functions | |
OptionsModel (QObject *parent=nullptr, bool resetSettings=false) | |
void | Init (bool resetSettings=false) |
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 |
void | setDisplayUnit (const QVariant &value) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More... | |
bool | getShowTrayIcon () const |
bool | getMinimizeToTray () const |
bool | getMinimizeOnClose () const |
int | getDisplayUnit () const |
QString | getThirdPartyTxUrls () const |
bool | getUseEmbeddedMonospacedFont () const |
bool | getCoinControlFeatures () const |
const QString & | getOverriddenByCommandLine () |
void | SetPruneEnabled (bool prune, bool force=false) |
void | SetPruneTargetGB (int prune_target_gb, bool force=false) |
void | setRestartRequired (bool fRequired) |
bool | isRestartRequired () const |
interfaces::Node & | node () const |
void | setNode (interfaces::Node &node) |
Private Member Functions | |
void | addOverriddenOption (const std::string &option) |
void | checkAndMigrate () |
Private Attributes | |
interfaces::Node * | m_node = nullptr |
bool | m_show_tray_icon |
bool | fMinimizeToTray |
bool | fMinimizeOnClose |
QString | language |
int | nDisplayUnit |
QString | strThirdPartyTxUrls |
bool | m_use_embedded_monospaced_font |
bool | fCoinControlFeatures |
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 39 of file optionsmodel.h.
Definition at line 46 of file optionsmodel.h.
|
explicit |
|
private |
Definition at line 37 of file optionsmodel.cpp.
|
private |
Definition at line 538 of file optionsmodel.cpp.
|
signal |
|
override |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void OptionsModel::Init | ( | bool | resetSettings = false | ) |
Definition at line 43 of file optionsmodel.cpp.
bool OptionsModel::isRestartRequired | ( | ) | const |
|
inline |
Definition at line 100 of file optionsmodel.h.
void OptionsModel::Reset | ( | ) |
Definition at line 193 of file optionsmodel.cpp.
|
override |
Definition at line 218 of file optionsmodel.cpp.
|
override |
void OptionsModel::setDisplayUnit | ( | const QVariant & | value | ) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.
Definition at line 515 of file optionsmodel.cpp.
|
inline |
Definition at line 101 of file optionsmodel.h.
void OptionsModel::SetPruneEnabled | ( | bool | prune, |
bool | force = false |
||
) |
Definition at line 255 of file optionsmodel.cpp.
void OptionsModel::SetPruneTargetGB | ( | int | prune_target_gb, |
bool | force = false |
||
) |
Definition at line 270 of file optionsmodel.cpp.
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
signal |
|
signal |
|
private |
Definition at line 113 of file optionsmodel.h.
|
private |
Definition at line 108 of file optionsmodel.h.
|
private |
Definition at line 107 of file optionsmodel.h.
|
private |
Definition at line 109 of file optionsmodel.h.
|
private |
Definition at line 104 of file optionsmodel.h.
|
private |
Definition at line 106 of file optionsmodel.h.
|
private |
Definition at line 112 of file optionsmodel.h.
|
private |
Definition at line 110 of file optionsmodel.h.
|
private |
Definition at line 115 of file optionsmodel.h.
|
private |
Definition at line 111 of file optionsmodel.h.