diff --git a/widgets/iconwidget.cpp b/widgets/iconwidget.cpp index bdf5e25ae..0772e1aab 100644 --- a/widgets/iconwidget.cpp +++ b/widgets/iconwidget.cpp @@ -740,6 +740,10 @@ void IconWidgetPrivate::drawBackground(QPainter *painter, IconWidgetState state) return; } + if (!(states & IconWidgetPrivate::HoverState) && !(states & IconWidgetPrivate::PressedState)) { + return; + } + if (state == IconWidgetPrivate::PressedState) { background->setElementPrefix("selected"); } else {