diff -r 2d4cc445a86a -r ee6b0f3a4c2f noteobj.cpp --- a/noteobj.cpp Mon Mar 23 09:06:51 2009 +0000 +++ b/noteobj.cpp Thu Mar 26 07:49:17 2009 +0000 @@ -20,11 +20,16 @@ note=s; } +void NoteObj::operator= (const NoteObj &other) +{ + copy (other); +} + void NoteObj::copy (NoteObj other) { note=other.note; fonthint=other.fonthint; - filenamehint=""; + filenamehint=other.filenamehint; } void NoteObj::clear() @@ -39,7 +44,7 @@ note=s; } -QString NoteObj::getNote() +QString NoteObj::getNote() const { return note; } @@ -51,7 +56,7 @@ QString NoteObj::getNoteASCII(const QString &indent, const int &width) { - // FIXME make use of width + // FIXME-3 make use of width QString r=note; // Remove all ... @@ -90,7 +95,7 @@ r.replace (rx,indent); r=indent + r; // Don't forget first line -/* FIXME wrap text at width +/* FIXME-2 wrap text at width if (fonthint !="fixed") { } @@ -143,7 +148,7 @@ fonthint=s; } -QString NoteObj::getFontHint() +QString NoteObj::getFontHint() const { // only for backward compatibility (pre 1.5 ) return fonthint; @@ -154,7 +159,7 @@ filenamehint=s; } -QString NoteObj::getFilenameHint() +QString NoteObj::getFilenameHint() const { return filenamehint; }