File indexing completed on 2024-05-12 16:59:36
0001 /* 0002 * SPDX-FileCopyrightText: 2014 David Edmundson <david@davidedmundson.co.uk> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 * 0006 */ 0007 0008 #include "note.h" 0009 0010 Note::Note(const QString &id) 0011 : QObject() 0012 , m_id(id) 0013 { 0014 } 0015 0016 QString Note::id() const 0017 { 0018 return m_id; 0019 } 0020 0021 void Note::setNoteText(const QString &text) 0022 { 0023 if (text == m_noteText) { 0024 return; 0025 } 0026 m_noteText = text; 0027 Q_EMIT noteTextChanged(); 0028 } 0029 0030 QString Note::noteText() const 0031 { 0032 return m_noteText; 0033 }