diff options
| author | Peter Penz <[email protected]> | 2011-12-07 23:04:09 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-07 23:10:00 +0100 |
| commit | b358e9928049575cf3118f3950caf52bfa003404 (patch) | |
| tree | dca93a2c2d8c55c20b7beae93000756ad765dd43 /src/views | |
| parent | 5a3e79e4ed7167e2bffb19b2a37db5184a643eee (diff) | |
Enable "menu key" functionality
Bring back the functionality that a context-menu is opened if the "menu key" has been pressed. In opposite to Dolphin 1.7 the context-menu is shown above the selected item and not on the (probably unrelated) mouse position.
A new method KItemListView::itemContextRect() has been introduced: The method is now also used as reference for tooltips which fixes the issue that tooltips had a wrong horizontal alignment in the details-view.
BUG: 288366
FIXED-IN: 4.8.0
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index d839c61a3..873074653 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -802,7 +802,7 @@ void DolphinView::slotItemHovered(int index) const KFileItem item = fileItemModel()->fileItem(index); if (GeneralSettings::showToolTips()) { - QRectF itemRect = m_container->controller()->view()->itemRect(index); + QRectF itemRect = m_container->controller()->view()->itemContextRect(index); const QPoint pos = m_container->mapToGlobal(itemRect.topLeft().toPoint()); itemRect.moveTo(pos); |
