~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to incidenceeditor-ng/incidencedescription.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  Copyright (c) 2010 Bertjan Broeksema <broeksema@kde.org>
3
 
  Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
 
3
  Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
4
4
 
5
5
  This library is free software; you can redistribute it and/or modify it
6
6
  under the terms of the GNU Library General Public License as published by
82
82
{
83
83
  mLoadedIncidence = incidence;
84
84
 
85
 
  d->mRealOriginalDescriptionEditContents = QString();
 
85
  d->mRealOriginalDescriptionEditContents.clear();
86
86
 
87
87
  if ( incidence ) {
88
88
    enableRichTextDescription( incidence->descriptionIsRich() );
205
205
    kDebug() << "Incidence description is rich " << mLoadedIncidence->descriptionIsRich();
206
206
 
207
207
    if ( mLoadedIncidence->descriptionIsRich() ) {
208
 
      kDebug() << "desc is rich, and it is <desc>" <<  mLoadedIncidence->richDescription() << "</desc>"
209
 
               << "; widget has <desc>" << mUi->mDescriptionEdit->toHtml() << "</desc>"
210
 
               << "; expression mLoadedIncidence->richDescription() != mUi->mDescriptionEdit->toHtml() is "
 
208
      kDebug() << "desc is rich, and it is <desc>" <<  mLoadedIncidence->richDescription()
 
209
               << "</desc>; "
 
210
               << "widget has <desc>" << mUi->mDescriptionEdit->toHtml()
 
211
               << "</desc>; "
 
212
               << "expr mLoadedIncidence->richDescription() != mUi->mDescriptionEdit->toHtml() is "
211
213
               << ( mLoadedIncidence->richDescription() != mUi->mDescriptionEdit->toHtml() );
212
214
    } else {
213
 
      kDebug() << "desc is not rich, and it is <desc>" << mLoadedIncidence->description() << "</desc>"
214
 
               << "; widget has <desc>" << mUi->mDescriptionEdit->toPlainText() << "</desc>"
215
 
               << "; expression mLoadedIncidence->description() != mUi->mDescriptionEdit->toPlainText() is "
 
215
      kDebug() << "desc is not rich, and it is <desc>" << mLoadedIncidence->description()
 
216
               << "</desc>; "
 
217
               << "widget has <desc>" << mUi->mDescriptionEdit->toPlainText()
 
218
               << "</desc>; "
 
219
               << "expr mLoadedIncidence->description() != mUi->mDescriptionEdit->toPlainText() is "
216
220
               <<  ( mLoadedIncidence->description() != mUi->mDescriptionEdit->toPlainText() );
217
221
    }
218
222