mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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 {
|
void CalibreStyle::drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const {
|
||||||
|
const QStyleOptionViewItem *vopt = NULL;
|
||||||
switch(element) {
|
switch(element) {
|
||||||
case CE_ItemViewItem: {
|
case CE_ItemViewItem: {
|
||||||
if (option->state & QStyle::State_HasFocus && (vopt = qstyleoption_cast<const QStyleOptionViewItem *>(option)) && widget && widget->property("highlight_current_item").toBool()) {
|
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