]> cloud.milkyroute.net Git - dolphin.git/commit
Context menu cleanups
authorPeter Penz <peter.penz19@gmail.com>
Sat, 8 Oct 2011 19:40:34 +0000 (21:40 +0200)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 8 Oct 2011 19:43:55 +0000 (21:43 +0200)
commit6551c000fc68134932cdc21f2cc7086b34bff30b
treef4892d247c13f988ee68de37ea1700aaf6e80ab2
parentb1b5a6db2e8b9b1fc175d068ba393925d95c9dc6
Context menu cleanups

- Open the context menu on the mouse-press event, not on the
  mouse-release event.
- Provide an explicit position-information and don't use
  QCursor::pos(). This fixes the issue that opening a context-menu
  by the keyboard opens below the cursor.
- Provide different signals in the KItemListController for
  the different context-menu types (item vs. view vs. header).
- Implement turning on/off roles by the header-context-menu.
14 files changed:
src/dolphincontextmenu.cpp
src/dolphincontextmenu.h
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/dolphinpart.cpp
src/dolphinpart.h
src/dolphinviewcontainer.cpp
src/kitemviews/kitemlistcontroller.cpp
src/kitemviews/kitemlistcontroller.h
src/kitemviews/kitemlistheader.cpp
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/views/dolphinview.cpp
src/views/dolphinview.h