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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to