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

Method setNotesList

src/frontend/dockwidgets/NoteDock.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void NoteDock::setNotesList(QList<Note*> list) {
37 m_notesList = list;
38 m_note = list.first();
39 setAspects(std::move(list));
40
41 connect(m_note, &Note::backgroundColorChanged, this, &NoteDock::noteBackgroundColorChanged);
42 connect(m_note, &Note::textColorChanged, this, &NoteDock::noteTextColorChanged);
43 connect(m_note, &Note::textFontChanged, this, &NoteDock::noteTextFontChanged);
44
45 CONDITIONAL_LOCK_RETURN;
46
47 ui.kcbBgColor->setColor(m_note->backgroundColor());
48 ui.kcbTextColor->setColor(m_note->textColor());
49 ui.kfrTextFont->setFont(m_note->textFont());
50}
51
52void NoteDock::retranslateUi() {
53}

Callers 1

Calls 3

backgroundColorMethod · 0.80
setColorMethod · 0.45
setFontMethod · 0.45

Tested by

no test coverage detected