#include <bitcoin-build-config.h>
#include <qt/optionsmodel.h>
#include <qt/bitcoinunits.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include <common/args.h>
#include <interfaces/node.h>
#include <mapport.h>
#include <net.h>
#include <netbase.h>
#include <node/chainstatemanager_args.h>
#include <txdb.h>
#include <util/string.h>
#include <validation.h>
#include <wallet/wallet.h>
#include <QDebug>
#include <QLatin1Char>
#include <QSettings>
#include <QStringList>
#include <QVariant>
#include <univalue.h>
Go to the source code of this file.
◆ BackupSettings()
static void BackupSettings |
( |
const fs::path & |
filename, |
|
|
const QSettings & |
src |
|
) |
| |
|
static |
◆ CopySettings()
static void CopySettings |
( |
QSettings & |
dst, |
|
|
const QSettings & |
src |
|
) |
| |
|
static |
Helper function to copy contents from one QSettings to another.
By using allKeys this also covers nested settings in a hierarchy.
Definition at line 266 of file optionsmodel.cpp.
◆ GetDefaultProxyAddress()
static QString GetDefaultProxyAddress |
( |
| ) |
|
|
static |
◆ ParseProxyString() [1/2]
static ProxySetting ParseProxyString |
( |
const QString & |
proxy | ) |
|
|
static |
◆ ParseProxyString() [2/2]
static ProxySetting ParseProxyString |
( |
const std::string & |
proxy | ) |
|
|
static |
◆ ParsePruneSizeGB()
static int ParsePruneSizeGB |
( |
const QVariant & |
prune_size | ) |
|
|
static |
Parse pruning size value provided by user in GUI or loaded from QSettings (windows registry key or qt .conf file).
Smallest value that the GUI can display is 1 GB, so round up if anything less is parsed.
Definition at line 106 of file optionsmodel.cpp.
◆ ProxyString()
static std::string ProxyString |
( |
bool |
is_set, |
|
|
QString |
ip, |
|
|
QString |
port |
|
) |
| |
|
static |
◆ PruneEnabled()
Get pruning enabled value to show in GUI from bitcoin -prune setting.
Definition at line 89 of file optionsmodel.cpp.
◆ PruneSetting()
Convert enabled/size values to bitcoin -prune setting.
Definition at line 82 of file optionsmodel.cpp.
◆ PruneSizeGB()
Get pruning size value to show in GUI from bitcoin -prune setting.
If pruning is not enabled, just show default recommended pruning size (2GB).
Definition at line 97 of file optionsmodel.cpp.
◆ SettingName()
◆ UpdateRwSetting()
Call node.updateRwSetting() with Bitcoin 22.x workaround.
Definition at line 61 of file optionsmodel.cpp.
◆ DEFAULT_GUI_PROXY_HOST
const char* DEFAULT_GUI_PROXY_HOST = "127.0.0.1" |
◆ fontchoice_str_best_system
const QLatin1String fontchoice_str_best_system {"best_system"} |
|
static |
◆ fontchoice_str_custom_prefix
const QString fontchoice_str_custom_prefix {QStringLiteral("custom, ")} |
|
static |
◆ fontchoice_str_embedded
const QLatin1String fontchoice_str_embedded {"embedded"} |
|
static |