[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Thu Jul 5 02:51:12 UTC 2012


SVN commit 1303996 by netterfield:

Make sure the correct context menu is always shown.


 M  +7 -6      view.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/view.cpp #1303995:1303996
@@ -313,13 +313,14 @@
         }
       }
     }
-  } else if (event->type() == QEvent::MouseButtonPress) {
-    QMouseEvent *e = static_cast<QMouseEvent*>(event);
-    if (e->button() == Qt::RightButton) {
-      contextMenuEvent();
-      return true;
     }
-  }
+//  } else if (event->type() == QEvent::MouseButtonPress) {
+//    QMouseEvent *e = static_cast<QMouseEvent*>(event);
+//    if (e->button() == Qt::RightButton) {
+//      //contextMenuEvent();
+//      //return true;
+//    }
+//  }
 
   return QGraphicsView::event(event);
 }


More information about the Kst mailing list