diff options
| author | Peter Penz <[email protected]> | 2006-12-04 05:48:57 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-12-04 05:48:57 +0000 |
| commit | 65c0544a2a7983dc65a1e0e294ce2149c29f6c54 (patch) | |
| tree | f5deedf4dfbd3c615b18f2a9fb85935e159b815d /src/dolphiniconsview.cpp | |
| parent | 01f577fda1b2ee522a0e87edab7c079c8b553860 (diff) | |
Use QWidget::contextMenuEvent() instead of directly listening to the right mouse button.
svn path=/trunk/playground/utils/dolphin/; revision=610302
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 4cd4bdddc..7522c1eaf 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -35,13 +35,9 @@ DolphinIconsView::~DolphinIconsView() { } -void DolphinIconsView::mousePressEvent(QMouseEvent* event) +void DolphinIconsView::contextMenuEvent(QContextMenuEvent* event) { - QListView::mousePressEvent(event); - - if (event->button() != Qt::RightButton) { - return; - } + QListView::contextMenuEvent(event); KFileItem* item = 0; |
