Commit beaafa19 authored by Laurent Montel's avatar Laurent Montel 😁

Comment debug code

parent 712179a0
......@@ -57,11 +57,11 @@ bool MailViewerSource::showSignatureDetails() const
void MailViewerSource::setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes)
{
qDebug() << " void MailViewerSource::setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes)";
for (int i = 0; i < availableModes.count(); ++i) {
qDebug() << "MailViewerSource::setHtmlMode Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
}
qDebug() << "MailViewerSource::setHtmlMode prefered " << MimeTreeParser::Util::htmlModeToString(mode);
// qDebug() << " void MailViewerSource::setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes)";
// for (int i = 0; i < availableModes.count(); ++i) {
// qDebug() << "MailViewerSource::setHtmlMode Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
// }
// qDebug() << "MailViewerSource::setHtmlMode prefered " << MimeTreeParser::Util::htmlModeToString(mode);
mViewer->mColorBar->setAvailableModes(availableModes);
mViewer->mColorBar->setMode(mode);
......
......@@ -2168,10 +2168,10 @@ void ViewerPrivate::slotToggleHtmlMode()
{
const auto availableModes = mColorBar->availableModes();
const int availableModeSize(availableModes.size());
for (int i = 0; i < availableModeSize; ++i) {
qDebug() << " Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
}
qDebug() << " availableModeSize"<<availableModeSize;
// for (int i = 0; i < availableModeSize; ++i) {
// qDebug() << " Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
// }
// qDebug() << " availableModeSize"<<availableModeSize;
if (mColorBar->isNormal() || availableModeSize < 2) {
return;
}
......@@ -2180,11 +2180,11 @@ void ViewerPrivate::slotToggleHtmlMode()
const int pos = (availableModes.indexOf(mode) + 1) % availableModeSize;
setDisplayFormatMessageOverwrite(translateToDisplayFormat(availableModes[pos]));
update(MimeTreeParser::Force);
for (int i = 0; i < availableModeSize; ++i) {
qDebug() << "AFTER Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
}
// for (int i = 0; i < availableModeSize; ++i) {
// qDebug() << "AFTER Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
// }
qDebug() << " Assign modes " << availableModes;
// qDebug() << " Assign modes " << availableModes;
mColorBar->setAvailableModes(availableModes);
}
......
......@@ -78,11 +78,11 @@ MessagePart::Ptr MultiPartAlternativeBodyPartFormatter::process(Interface::BodyP
preferredMode = Util::MultipartPlain;
}
qDebug() << " MessagePart::Ptr MultiPartAlternativeBodyPartFormatter::process(Interface::BodyPart &part) const";
for (int i = 0; i < mp->availableModes().count(); ++i) {
qDebug() << "MultiPartAlternativeBodyPartFormatter::processe Modes " << MimeTreeParser::Util::htmlModeToString(mp->availableModes().at(i));
}
qDebug() << "MultiPartAlternativeBodyPartFormatter::process prefered " << MimeTreeParser::Util::htmlModeToString(preferredMode);
// qDebug() << " MessagePart::Ptr MultiPartAlternativeBodyPartFormatter::process(Interface::BodyPart &part) const";
// for (int i = 0; i < mp->availableModes().count(); ++i) {
// qDebug() << "MultiPartAlternativeBodyPartFormatter::processe Modes " << MimeTreeParser::Util::htmlModeToString(mp->availableModes().at(i));
// }
// qDebug() << "MultiPartAlternativeBodyPartFormatter::process prefered " << MimeTreeParser::Util::htmlModeToString(preferredMode);
part.source()->setHtmlMode(preferredMode, mp->availableModes());
mp->setPreferredMode(preferredMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment