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:
parent
0ae288d250
commit
b1a56982ad
@ -190,7 +190,7 @@ QRect Delegate::emptyRect(const QStyleOptionViewItem& option, const QModelIndex&
|
|||||||
|
|
||||||
void Delegate::paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
|
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;
|
QRect contentRect = option.rect;
|
||||||
contentRect.setBottom(contentRect.bottom() - 1);
|
contentRect.setBottom(contentRect.bottom() - 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user