MCPcopy Create free account
hub / github.com/KDE/labplot / fileNameChanged

Method fileNameChanged

src/frontend/widgets/BackgroundWidget.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void BackgroundWidget::fileNameChanged() {
324 const QString& fileName = ui.leFileName->text();
325 bool invalid = (!fileName.isEmpty() && !QFile::exists(fileName));
326 GuiTools::highlight(ui.leFileName, invalid);
327
328 CONDITIONAL_LOCK_RETURN;
329
330 for (auto* background : m_backgrounds)
331 background->setFileName(fileName);
332}
333
334//*************************************************************
335//********* SLOTs for changes triggered in Background *********

Callers

nothing calls this directly

Calls 3

textMethod · 0.45
isEmptyMethod · 0.45
setFileNameMethod · 0.45

Tested by

no test coverage detected