ToolProperties FillSettings::saveToolSettings() { ToolProperties cfg(toolType()); cfg.setValue(props::tolerance, _ui->tolerance->value()); cfg.setValue(props::expand, _ui->expand->value()); cfg.setValue(props::samplemerged, _ui->samplemerged->isChecked()); cfg.setValue(props::underfill, _ui->fillunder->isChecked()); cfg.setValue(props::erasermode, _ui->erasermode->isChecked()); return cfg; }
void MapEditorTool::deactivate() { if (editor->getTool() == this) { if (toolType() == MapEditorTool::EditPoint) editor->setTool(nullptr); else editor->setEditTool(); } deleteLater(); }
ToolProperties ToolSettings::saveToolSettings() { return ToolProperties(toolType()); }