Bitcoin
|
#include <optionsmodel.h>
Signals | |
void | displayUnitChanged (int unit) |
void | coinControlFeaturesChanged (bool) |
void | hideTrayIconChanged (bool) |
Public Member Functions | |
OptionsModel (interfaces::Node &node, QObject *parent=nullptr, bool resetSettings=false) | |
void | Init (bool resetSettings=false) |
void | Reset () |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
void | setDisplayUnit (const QVariant &value) |
bool | getHideTrayIcon () const |
bool | getMinimizeToTray () const |
bool | getMinimizeOnClose () const |
int | getDisplayUnit () const |
QString | getThirdPartyTxUrls () const |
bool | getProxySettings (QNetworkProxy &proxy) const |
bool | getCoinControlFeatures () const |
const QString & | getOverriddenByCommandLine () |
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 | fHideTrayIcon |
bool | fMinimizeToTray |
bool | fMinimizeOnClose |
QString | language |
int | nDisplayUnit |
QString | strThirdPartyTxUrls |
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.
|
explicit |
|
private |
|
private |
|
signal |
QVariant OptionsModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool OptionsModel::getProxySettings | ( | QNetworkProxy & | proxy | ) | const |
|
inline |
|
signal |
void OptionsModel::Init | ( | bool | resetSettings = false | ) |
bool OptionsModel::isRestartRequired | ( | ) | const |
|
inline |
void OptionsModel::Reset | ( | ) |
int OptionsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
bool OptionsModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
void OptionsModel::setDisplayUnit | ( | const QVariant & | value | ) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |