From kde-commits Wed May 04 13:04:11 2005 From: Mario Teijeiro Otero Date: Wed, 04 May 2005 13:04:11 +0000 To: kde-commits Subject: trunk/KDE/kdepim/kmail Message-Id: <1115211851.078105.23961.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111521187807234 SVN commit 409250 by mteijeiro: * Fix color of quoting when "Show expand/collapse quote marks" is disabled. M +14 -14 trunk/KDE/kdepim/kmail/objecttreeparser.cpp --- trunk/KDE/kdepim/kmail/objecttreeparser.cpp #409249:409250 @@ -2497,10 +2497,10 @@ bool actHidden = false; QString textExpand; - // LevelQuote: - // 0 don't hide anything - // >0 hide the level 1, 2,3,... and so on - if ( mReader->mLevelQuote >= 0 && mReader->mLevelQuote <= ( actQuoteLevel ) ) + + // This quoted line needs be hiden + if (GlobalSettings::showExpandQuotesMark() && mReader->mLevelQuote >= 0 + && mReader->mLevelQuote <= ( actQuoteLevel ) ) actHidden = true; if ( actQuoteLevel != currQuoteLevel ) { @@ -2517,17 +2517,8 @@ { if ( GlobalSettings::showExpandQuotesMark() ) { - if ( !actHidden ) + if ( actHidden ) { - htmlStr += "
" ; - htmlStr += QString( "" - "\"\"" ) - .arg(actQuoteLevel) - .arg( mCollapseIcon); - htmlStr += "
"; - htmlStr += quoteFontTag[actQuoteLevel%3]; - } - else //only show the QuoteMark when is the first line of the level hidden if ( !curHidden ) { @@ -2540,6 +2531,15 @@ htmlStr += "
"; htmlStr += quoteEnd; } + }else { + htmlStr += "
" ; + htmlStr += QString( "" + "\"\"" ) + .arg(actQuoteLevel) + .arg( mCollapseIcon); + htmlStr += "
"; + htmlStr += quoteFontTag[actQuoteLevel%3]; + } } else htmlStr += quoteFontTag[actQuoteLevel%3]; }