Kickoff changes asked on panel-devel. As voted, the background painting did not get in

- Strict mouse hover
    - Leaving an item will unselect that item
    - Leaving the viewport will unselect the selected item if was any
- Better keyboard navigation
    - If no item selected, Up will select the last item, Down will select the first item
- Search improvements
    - The first result becomes the selected index, if exists
    - The bottom tabbar is hidden for ease of use, intuitivity and letting more room for search results

CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792562
This commit is contained in:
Rafael Fernández López 2008-04-01 15:53:52 +00:00
parent 0ae288d250
commit b1a56982ad

View File

@ -190,7 +190,7 @@ QRect Delegate::emptyRect(const QStyleOptionViewItem& option, const QModelIndex&
void Delegate::paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
const bool hover = option.state & (QStyle::State_Selected|QStyle::State_MouseOver|QStyle::State_HasFocus);
const bool hover = option.state & (QStyle::State_MouseOver | QStyle::State_Selected);
QRect contentRect = option.rect;
contentRect.setBottom(contentRect.bottom() - 1);