https://bugs.kde.org/show_bug.cgi?id=523118

Allen Hewes <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|https://bugs.kde.org/show_b |
                   |ug.cgi?id=518723            |
           Keywords|                            |regression

--- Comment #3 from Allen Hewes <[email protected]> ---
Hi,

I am removing the See Also link to bug 518723. I thought it could be related
when
I filed this, but it isn't. Here's my understanding of 518723.

KMail's message list does not use SE_ItemViewItemText for text layout.
MessageList::Core::ThemeDelegate::paint() clears the text out of the style
option before handing it to the style, then draws every field itself:

  messagelib, messagelist/src/core/themedelegate.cpp (26.04.3, line 585)

    opt.text.clear(); // draw no text for me, please.. I'll do it in a while
    ...
    style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, mItemView);

With opt.text empty, QCommonStyle performs no item-view text layout, so
subElementRect(SE_ItemViewItemText) does not affect anything KMail paints.
The delegate computes its own elision via QFontMetrics::elidedText() against
rects from the theme layout.

This bug concerns applications that leave text in the style option and
therefore
depend on that subelement rect — the three I confirmed are examples, not the
extent of it. Same subelement name, different code path.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to