1.1 --- a/noteobj.cpp Mon Mar 22 15:37:23 2010 +0000
1.2 +++ b/noteobj.cpp Tue Mar 30 17:30:39 2010 +0000
1.3 @@ -1,9 +1,7 @@
1.4 -#include <qfile.h>
1.5 -#include <qtextstream.h>
1.6 -#include <qmessagebox.h>
1.7 -#include <qregexp.h>
1.8 +#include "noteobj.h"
1.9
1.10 -#include "noteobj.h"
1.11 +#include <QRegExp>
1.12 +#include <QDebug>
1.13
1.14 /////////////////////////////////////////////////////////////////
1.15 // NoteObj
1.16 @@ -51,12 +49,12 @@
1.17
1.18 QString NoteObj::getNoteASCII()
1.19 {
1.20 - return getNoteASCII (QString(""),80);
1.21 + return getNoteASCII ("",80);
1.22 }
1.23
1.24 -QString NoteObj::getNoteASCII(const QString &indent, const int &width)
1.25 +QString NoteObj::getNoteASCII(QString indent, const int &width)
1.26 {
1.27 - // FIXME-3 make use of width
1.28 + if (note.isEmpty()) return note;
1.29 QString r=note;
1.30
1.31 // Remove all <style...> ...</style>
1.32 @@ -95,7 +93,7 @@
1.33 r.replace (rx,indent);
1.34 r=indent + r; // Don't forget first line
1.35
1.36 -/* FIXME-5 wrap text at width
1.37 +/* FIXME-3 wrap text at width
1.38 if (fonthint !="fixed")
1.39 {
1.40 }