Пример #1
0
void DivePlannerPointsModel::setDecoMode(int mode)
{
	auto planner = SettingsObjectWrapper::instance()->planner_settings;
	planner->setDecoMode(deco_mode(mode));
	emit recreationChanged(mode == int(prefs.planner_deco_mode));
	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
}
Пример #2
0
void DivePlannerPointsModel::setRecreationalMode(bool value)
{
	prefs.recreational_mode = value;
	emit recreationChanged(value);
	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
}
Пример #3
0
void DivePlannerPointsModel::setDecoMode(int mode)
{
	prefs.deco_mode = deco_mode(mode);
	emit recreationChanged(mode == int(prefs.deco_mode));
	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
}