1.1 --- a/noteobj.cpp Mon Mar 23 09:06:51 2009 +0000
1.2 +++ b/noteobj.cpp Thu Mar 26 07:49:17 2009 +0000
1.3 @@ -20,11 +20,16 @@
1.4 note=s;
1.5 }
1.6
1.7 +void NoteObj::operator= (const NoteObj &other)
1.8 +{
1.9 + copy (other);
1.10 +}
1.11 +
1.12 void NoteObj::copy (NoteObj other)
1.13 {
1.14 note=other.note;
1.15 fonthint=other.fonthint;
1.16 - filenamehint="";
1.17 + filenamehint=other.filenamehint;
1.18 }
1.19
1.20 void NoteObj::clear()
1.21 @@ -39,7 +44,7 @@
1.22 note=s;
1.23 }
1.24
1.25 -QString NoteObj::getNote()
1.26 +QString NoteObj::getNote() const
1.27 {
1.28 return note;
1.29 }
1.30 @@ -51,7 +56,7 @@
1.31
1.32 QString NoteObj::getNoteASCII(const QString &indent, const int &width)
1.33 {
1.34 - // FIXME make use of width
1.35 + // FIXME-3 make use of width
1.36 QString r=note;
1.37
1.38 // Remove all <style...> ...</style>
1.39 @@ -90,7 +95,7 @@
1.40 r.replace (rx,indent);
1.41 r=indent + r; // Don't forget first line
1.42
1.43 -/* FIXME wrap text at width
1.44 +/* FIXME-2 wrap text at width
1.45 if (fonthint !="fixed")
1.46 {
1.47 }
1.48 @@ -143,7 +148,7 @@
1.49 fonthint=s;
1.50 }
1.51
1.52 -QString NoteObj::getFontHint()
1.53 +QString NoteObj::getFontHint() const
1.54 {
1.55 // only for backward compatibility (pre 1.5 )
1.56 return fonthint;
1.57 @@ -154,7 +159,7 @@
1.58 filenamehint=s;
1.59 }
1.60
1.61 -QString NoteObj::getFilenameHint()
1.62 +QString NoteObj::getFilenameHint() const
1.63 {
1.64 return filenamehint;
1.65 }