Summary: | digikam file property toolstip window: comments text interprets 'html' tags but it should not | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Achim Bohnet <ach> |
Component: | Usability-i18n | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 7.5.0 |
Description
Achim Bohnet
2005-02-16 01:41:09 UTC
CVS commit by pahlibar: show tooltip text as actual text. also set format in commentseditor to use plaintext BUGS: 99500 M +3 -1 albumfiletip.cpp 1.21 M +1 -0 imagedescedit.cpp 1.41 --- kdeextragear-3/digikam/digikam/albumfiletip.cpp #1.20:1.21 @@ -385,4 +385,7 @@ QString AlbumFileTip::breakString(const QString str = input.simplifyWhiteSpace(); + str.replace(QChar('<'), "<"); + str.replace(QChar('>'), ">"); + uint maxLen = 30; --- kdeextragear-3/digikam/digikam/imagedescedit.cpp #1.40:1.41 @@ -105,4 +105,5 @@ ImageDescEdit::ImageDescEdit(AlbumIconVi QVGroupBox* commentsBox = new QVGroupBox(i18n("Comments"), plainPage()); m_commentsEdit = new KTextEdit(commentsBox); + m_commentsEdit->setTextFormat(QTextEdit::PlainText); #if KDE_IS_VERSION(3,2,0) m_commentsEdit->setCheckSpellingEnabled(true); CVS commit by pahlibar: Better solution. escape all html characters CCBUGS: 99500 M +2 -2 albumfiletip.cpp 1.22 --- kdeextragear-3/digikam/digikam/albumfiletip.cpp #1.21:1.22 @@ -31,4 +31,5 @@ #include <qpainter.h> #include <qapplication.h> +#include <qstylesheet.h> // KDE includes. @@ -385,6 +386,5 @@ QString AlbumFileTip::breakString(const QString str = input.simplifyWhiteSpace(); - str.replace(QChar('<'), "<"); - str.replace(QChar('>'), ">"); + str = QStyleSheet::escape(str); uint maxLen = 30; Fixed with works from bug #438701 for next 7.5.0 release Gilles Caulier |