mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 08:21:22 +00:00
Fixed issue that Ctrl+A inverted the selection instead doing a "Select All". It seems like a Qt issue, but I'm not 100 % sure - I'll try to make this reproducible with a Qt-only code after KDE 4.0 and submit a bug report to Trolltech...
BUG: 153938 svn path=/trunk/KDE/kdebase/apps/; revision=748823
This commit is contained in:
parent
1e3da19459
commit
ceafa5cc22
|
@ -320,7 +320,13 @@ bool DolphinView::supportsCategorizedSorting() const
|
||||||
|
|
||||||
void DolphinView::selectAll()
|
void DolphinView::selectAll()
|
||||||
{
|
{
|
||||||
itemView()->selectAll();
|
QAbstractItemView* view = itemView();
|
||||||
|
// TODO: there seems to be a bug in QAbstractItemView::selectAll(); if
|
||||||
|
// the Ctrl-key is pressed (e. g. for Ctrl+A), selectAll() inverts the
|
||||||
|
// selection instead of selecting all items. This is bypassed for KDE 4.0
|
||||||
|
// by invoking clearSelection() first.
|
||||||
|
view->clearSelection();
|
||||||
|
view->selectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DolphinView::invertSelection()
|
void DolphinView::invertSelection()
|
||||||
|
|
Loading…
Reference in a new issue