[Interest] ItemDelegate and word wrapping

Christoph Feck christoph at maxiom.de
Sat Feb 2 21:36:00 CET 2013


On Friday 01 February 2013 12:59:43 Иван Комиссаров wrote:
> So, what should i do?) Should i hardcode style names that support
> drawing fancy background and emulate in other cases?

From looking at KDE code, we use 

    style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, 
opt.widget);

instead of

    style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, 
widget);

to draw the item's background. See kdelibs/kdeui/paged/pageview_p.cpp 
line 419+.

-- 
Christoph Feck
http://kdepepo.wordpress.com/
KDE Quality Team



More information about the Interest mailing list