MCPcopy Create free account
hub / github.com/TeXworks/texworks / editTool

Method editTool

src/PrefsDialog.cpp:235–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void PrefsDialog::editTool(QListWidgetItem* item)
236{
237 int row = -1;
238 if (item)
239 row = toolList->row(item);
240 else if (toolList->currentRow() > -1 && toolList->currentItem()->isSelected())
241 row = toolList->currentRow();
242 if (row > -1) {
243 Engine e = engineList[toolList->currentRow()];
244 if (ToolConfig::doToolConfig(this, e) == QDialog::Accepted) {
245 engineList[toolList->currentRow()] = e;
246 toolList->currentItem()->setText(e.name());
247 toolsChanged = true;
248 }
249 }
250}
251
252void PrefsDialog::refreshDefaultTool()
253{

Callers 1

initMethod · 0.95

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected