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

Method embeddedChanged

src/frontend/widgets/DatapickerImageWidget.cpp:395–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void DatapickerImageWidget::embeddedChanged(bool embedded) {
396 CONDITIONAL_LOCK_RETURN;
397
398 for (auto* image : m_imagesList)
399 image->setEmbedded(embedded);
400
401 // embedded property was set, update the file name LineEdit after this
402 if (embedded) {
403 QFileInfo fi(m_image->fileName());
404 ui.leFileName->setText(fi.fileName());
405 } else
406 ui.leFileName->setText(m_image->fileName());
407}
408
409void DatapickerImageWidget::relativeChanged(bool relative) {
410 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 3

setEmbeddedMethod · 0.45
fileNameMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected