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
This commit is contained in:
Rafael Fernández López 2007-12-16 01:37:11 +00:00
parent fb4907dc6d
commit 8fea48eb44

View file

@ -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;