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

Method setBackgrounds

src/frontend/widgets/BackgroundWidget.cpp:48–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void BackgroundWidget::setBackgrounds(const QList<Background*>& backgrounds) {
49 m_backgrounds = backgrounds;
50 m_background = m_backgrounds.first();
51 m_prefix = m_background->prefix();
52
53 CONDITIONAL_LOCK_RETURN;
54 load();
55
56 connect(m_background, &Background::enabledChanged, this, &BackgroundWidget::backgroundEnabledChanged);
57 connect(m_background, &Background::positionChanged, this, &BackgroundWidget::backgroundPositionChanged);
58 connect(m_background, &Background::typeChanged, this, &BackgroundWidget::backgroundTypeChanged);
59 connect(m_background, &Background::colorStyleChanged, this, &BackgroundWidget::backgroundColorStyleChanged);
60 connect(m_background, &Background::imageStyleChanged, this, &BackgroundWidget::backgroundImageStyleChanged);
61 connect(m_background, &Background::brushStyleChanged, this, &BackgroundWidget::backgroundBrushStyleChanged);
62 connect(m_background, &Background::firstColorChanged, this, &BackgroundWidget::backgroundFirstColorChanged);
63 connect(m_background, &Background::secondColorChanged, this, &BackgroundWidget::backgroundSecondColorChanged);
64 connect(m_background, &Background::fileNameChanged, this, &BackgroundWidget::backgroundFileNameChanged);
65 connect(m_background, &Background::opacityChanged, this, &BackgroundWidget::backgroundOpacityChanged);
66}
67
68void BackgroundWidget::showEvent(QShowEvent* event) {
69 QWidget::showEvent(event);

Callers 11

setBarPlotsMethod · 0.80
barNumberChangedMethod · 0.80
setSymbolsMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
setPlotsMethod · 0.80
loadMethod · 0.80
setReferenceRangesMethod · 0.80
setBoxPlotsMethod · 0.80
currentBoxChangedMethod · 0.80
setCurvesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected