diff options
Diffstat (limited to 'kresources/kolab/knotes/note.cpp')
-rw-r--r-- | kresources/kolab/knotes/note.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kresources/kolab/knotes/note.cpp b/kresources/kolab/knotes/note.cpp index 76ecdd9db..66556aaf8 100644 --- a/kresources/kolab/knotes/note.cpp +++ b/kresources/kolab/knotes/note.cpp @@ -40,7 +40,7 @@ using namespace Kolab; -KCal::Journal* Note::xmlToJournal( const QString& xml ) +KCal::Journal* Note::xmlToJournal( const TQString& xml ) { Note note; note.load( xml ); @@ -49,7 +49,7 @@ KCal::Journal* Note::xmlToJournal( const QString& xml ) return journal; } -QString Note::journalToXML( KCal::Journal* journal ) +TQString Note::journalToXML( KCal::Journal* journal ) { Note note( journal ); return note.saveXML(); @@ -65,32 +65,32 @@ Note::~Note() { } -void Note::setSummary( const QString& summary ) +void Note::setSummary( const TQString& summary ) { mSummary = summary; } -QString Note::summary() const +TQString Note::summary() const { return mSummary; } -void Note::setBackgroundColor( const QColor& bgColor ) +void Note::setBackgroundColor( const TQColor& bgColor ) { mBackgroundColor = bgColor; } -QColor Note::backgroundColor() const +TQColor Note::backgroundColor() const { return mBackgroundColor; } -void Note::setForegroundColor( const QColor& fgColor ) +void Note::setForegroundColor( const TQColor& fgColor ) { mForegroundColor = fgColor; } -QColor Note::foregroundColor() const +TQColor Note::foregroundColor() const { return mForegroundColor; } @@ -105,9 +105,9 @@ bool Note::richText() const return mRichText; } -bool Note::loadAttribute( QDomElement& element ) +bool Note::loadAttribute( TQDomElement& element ) { - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if ( tagName == "summary" ) setSummary( element.text() ); @@ -124,14 +124,14 @@ bool Note::loadAttribute( QDomElement& element ) return true; } -bool Note::saveAttributes( QDomElement& element ) const +bool Note::saveAttributes( TQDomElement& element ) const { // Save the base class elements KolabBase::saveAttributes( element ); // Save the elements #if 0 - QDomComment c = element.ownerDocument().createComment( "Note specific attributes" ); + TQDomComment c = element.ownerDocument().createComment( "Note specific attributes" ); element.appendChild( c ); #endif @@ -144,9 +144,9 @@ bool Note::saveAttributes( QDomElement& element ) const } -bool Note::loadXML( const QDomDocument& document ) +bool Note::loadXML( const TQDomDocument& document ) { - QDomElement top = document.documentElement(); + TQDomElement top = document.documentElement(); if ( top.tagName() != "note" ) { qWarning( "XML error: Top tag was %s instead of the expected note", @@ -154,11 +154,11 @@ bool Note::loadXML( const QDomDocument& document ) return false; } - for ( QDomNode n = top.firstChild(); !n.isNull(); n = n.nextSibling() ) { + for ( TQDomNode n = top.firstChild(); !n.isNull(); n = n.nextSibling() ) { if ( n.isComment() ) continue; if ( n.isElement() ) { - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); if ( !loadAttribute( e ) ) // TODO: Unhandled tag - save for later storage kdDebug() << "Warning: Unhandled tag " << e.tagName() << endl; @@ -169,10 +169,10 @@ bool Note::loadXML( const QDomDocument& document ) return true; } -QString Note::saveXML() const +TQString Note::saveXML() const { - QDomDocument document = domTree(); - QDomElement element = document.createElement( "note" ); + TQDomDocument document = domTree(); + TQDomElement element = document.createElement( "note" ); element.setAttribute( "version", "1.0" ); saveAttributes( element ); document.appendChild( element ); @@ -204,7 +204,7 @@ void Note::saveTo( KCal::Journal* journal ) richText() ? "true" : "false" ); } -QString Note::productID() const +TQString Note::productID() const { - return QString( "KNotes %1, Kolab resource" ).arg( KNOTES_VERSION ); + return TQString( "KNotes %1, Kolab resource" ).arg( KNOTES_VERSION ); } |