Changeset View
Changeset View
Standalone View
Standalone View
src/qt/optionsmodel.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | QVariant data(const QModelIndex &index, | ||||
int role = Qt::DisplayRole) const override; | int role = Qt::DisplayRole) const override; | ||||
bool setData(const QModelIndex &index, const QVariant &value, | bool setData(const QModelIndex &index, const QVariant &value, | ||||
int role = Qt::EditRole) override; | int role = Qt::EditRole) override; | ||||
/** Updates current unit in memory, settings and emits | /** Updates current unit in memory, settings and emits | ||||
* displayUnitChanged(newUnit) signal */ | * displayUnitChanged(newUnit) signal */ | ||||
void setDisplayUnit(const QVariant &value); | void setDisplayUnit(const QVariant &value); | ||||
/* Explicit getters */ | /* Explicit getters */ | ||||
bool getHideTrayIcon() { return fHideTrayIcon; } | bool getHideTrayIcon() const { return fHideTrayIcon; } | ||||
bool getMinimizeToTray() { return fMinimizeToTray; } | bool getMinimizeToTray() const { return fMinimizeToTray; } | ||||
bool getMinimizeOnClose() { return fMinimizeOnClose; } | bool getMinimizeOnClose() const { return fMinimizeOnClose; } | ||||
int getDisplayUnit() { return nDisplayUnit; } | int getDisplayUnit() const { return nDisplayUnit; } | ||||
QString getThirdPartyTxUrls() { return strThirdPartyTxUrls; } | QString getThirdPartyTxUrls() const { return strThirdPartyTxUrls; } | ||||
bool getProxySettings(QNetworkProxy &proxy) const; | bool getProxySettings(QNetworkProxy &proxy) const; | ||||
bool getCoinControlFeatures() { return fCoinControlFeatures; } | bool getCoinControlFeatures() const { return fCoinControlFeatures; } | ||||
const QString &getOverriddenByCommandLine() { | const QString &getOverriddenByCommandLine() { | ||||
return strOverriddenByCommandLine; | return strOverriddenByCommandLine; | ||||
} | } | ||||
/* Restart flag helper */ | /* Restart flag helper */ | ||||
void setRestartRequired(bool fRequired); | void setRestartRequired(bool fRequired); | ||||
bool isRestartRequired(); | bool isRestartRequired() const; | ||||
private: | private: | ||||
/* Qt-only settings */ | /* Qt-only settings */ | ||||
bool fHideTrayIcon; | bool fHideTrayIcon; | ||||
bool fMinimizeToTray; | bool fMinimizeToTray; | ||||
bool fMinimizeOnClose; | bool fMinimizeOnClose; | ||||
QString language; | QString language; | ||||
int nDisplayUnit; | int nDisplayUnit; | ||||
Show All 18 Lines |