mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
87a7aa3037
commit
05c33adcd7
@ -343,6 +343,7 @@ void CalibreStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *
|
||||
}
|
||||
|
||||
void CalibreStyle::drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const {
|
||||
const QStyleOptionViewItem *vopt = NULL;
|
||||
switch(element) {
|
||||
case CE_ItemViewItem: {
|
||||
if (option->state & QStyle::State_HasFocus && (vopt = qstyleoption_cast<const QStyleOptionViewItem *>(option)) && widget && widget->property("highlight_current_item").toBool()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user