From: Rafael Fernández López Date: Sun, 16 Dec 2007 01:37:11 +0000 (+0000) Subject: Fix the problem of the elements being rendered as hovered when a dragging was being... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/8fea48eb445d893170a62619df8636c5b4c582b7 Fix the problem of the elements being rendered as hovered when a dragging was being done. Regarding your mail Peter, well some variables are bad-named, but their values were correct :) CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=748962 --- diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 189879953..d612f4b1c 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -744,7 +744,7 @@ void KCategorizedView::paintEvent(QPaintEvent *event) option.state |= QStyle::State_Editing; } - if ((index == d->hovered) && !d->mouseButtonPressed) + if ((index == d->hovered) && !d->mouseButtonPressed && (this->state() != QAbstractItemView::DraggingState)) option.state |= QStyle::State_MouseOver; else option.state &= ~QStyle::State_MouseOver;