Changeset View
Changeset View
Standalone View
Standalone View
src/qt/optionsmodel.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | enum OptionID { | ||||
SpendZeroConfChange, // bool | SpendZeroConfChange, // bool | ||||
Listen, // bool | Listen, // bool | ||||
OptionIDRowCount, | OptionIDRowCount, | ||||
}; | }; | ||||
void Init(bool resetSettings = false); | void Init(bool resetSettings = false); | ||||
void Reset(); | void Reset(); | ||||
int rowCount(const QModelIndex &parent = QModelIndex()) const; | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | QVariant data(const QModelIndex &index, | ||||
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); | 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() { return fHideTrayIcon; } | ||||
bool getMinimizeToTray() { return fMinimizeToTray; } | bool getMinimizeToTray() { return fMinimizeToTray; } | ||||
bool getMinimizeOnClose() { return fMinimizeOnClose; } | bool getMinimizeOnClose() { return fMinimizeOnClose; } | ||||
Show All 37 Lines |