![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <cstdint>#include <qt/bitcoinunits.h>#include <qt/guiconstants.h>#include <QAbstractListModel>#include <QFont>#include <cassert>#include <variant>Go to the source code of this file.
Classes | |
| class | OptionsModel |
| Interface from Qt to configuration data structure for Bitcoin client. More... | |
Namespaces | |
| namespace | interfaces |
Functions | |
| static int | PruneMiBtoGB (int64_t mib) |
| Convert configured prune target MiB to displayed GB. | |
| static int64_t | PruneGBtoMiB (int gb) |
| Convert displayed prune target GB to configured MiB. | |
Variables | |
| const char * | DEFAULT_GUI_PROXY_HOST |
| static constexpr uint16_t | DEFAULT_GUI_PROXY_PORT = 9050 |
|
inlinestatic |
Convert displayed prune target GB to configured MiB.
Round down so roundtrip GB -> MiB -> GB conversion is stable.
Definition at line 34 of file optionsmodel.h.
|
inlinestatic |
Convert configured prune target MiB to displayed GB.
Round up to avoid underestimating max disk usage.
Definition at line 29 of file optionsmodel.h.
|
extern |
Definition at line 31 of file optionsmodel.cpp.
|
staticconstexpr |
Definition at line 24 of file optionsmodel.h.