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

Method showErrorMessage

src/frontend/ProjectExplorer.cpp:529–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529void ProjectExplorer::showErrorMessage(const QString& message) {
530 if (message.isEmpty()) {
531 if (m_messageWidget && m_messageWidget->isVisible())
532 m_messageWidget->close();
533 } else {
534 if (!m_messageWidget) {
535 m_messageWidget = new KMessageWidget(this);
536 m_messageWidget->setMessageType(KMessageWidget::Error);
537 layout()->addWidget(m_messageWidget);
538 }
539 m_messageWidget->setText(message);
540 m_messageWidget->animatedShow();
541 }
542}
543
544// ##############################################################################
545// ################################# SLOTS ####################################

Callers

nothing calls this directly

Calls 4

isEmptyMethod · 0.45
isVisibleMethod · 0.45
closeMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected