Changeset View
Changeset View
Standalone View
Standalone View
src/qt/optionsmodel.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include "config/bitcoin-config.h" | ||||
#endif | #endif | ||||
#include "optionsmodel.h" | #include "optionsmodel.h" | ||||
#include "bitcoinunits.h" | #include "bitcoinunits.h" | ||||
#include "guiutil.h" | #include "guiutil.h" | ||||
#include "amount.h" | #include "amount.h" | ||||
#include "interface/node.h" | #include "interfaces/node.h" | ||||
#include "intro.h" | #include "intro.h" | ||||
#include "net.h" | #include "net.h" | ||||
#include "netbase.h" | #include "netbase.h" | ||||
#include "txdb.h" // for -dbcache defaults | #include "txdb.h" // for -dbcache defaults | ||||
#include "validation.h" // For DEFAULT_SCRIPTCHECK_THREADS | #include "validation.h" // For DEFAULT_SCRIPTCHECK_THREADS | ||||
#include <QNetworkProxy> | #include <QNetworkProxy> | ||||
#include <QSettings> | #include <QSettings> | ||||
#include <QStringList> | #include <QStringList> | ||||
const char *DEFAULT_GUI_PROXY_HOST = "127.0.0.1"; | const char *DEFAULT_GUI_PROXY_HOST = "127.0.0.1"; | ||||
OptionsModel::OptionsModel(interface::Node &node, QObject *parent, | OptionsModel::OptionsModel(interfaces::Node &node, QObject *parent, | ||||
bool resetSettings) | bool resetSettings) | ||||
: QAbstractListModel(parent), m_node(node) { | : QAbstractListModel(parent), m_node(node) { | ||||
Init(resetSettings); | Init(resetSettings); | ||||
} | } | ||||
void OptionsModel::addOverriddenOption(const std::string &option) { | void OptionsModel::addOverriddenOption(const std::string &option) { | ||||
strOverriddenByCommandLine += | strOverriddenByCommandLine += | ||||
QString::fromStdString(option) + "=" + | QString::fromStdString(option) + "=" + | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |