OSSP CVS Repository

ossp - Check-in [3849]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3849
Date: 2002-Dec-06 17:16:07 (local)
2002-Dec-06 16:16:07 (UTC)
User:ms
Branch:
Comment: Make table clicking work like a macintosh.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_table.cpp      1.5 -> 1.6     4 inserted, 0 deleted

ossp-pkg/as/as-gui/as_table.cpp 1.5 -> 1.6

--- as_table.cpp 2002/12/03 17:05:11     1.5
+++ as_table.cpp 2002/12/06 16:16:07     1.6
@@ -39,6 +39,10 @@
 {
     if (pObject == horizontalHeader() && pEvent->type() == QEvent::MouseButtonDblClick)
         return true;
+    if (pEvent->type() == QEvent::MouseButtonPress &&
+        (((QMouseEvent *)pEvent)->button() == QMouseEvent::RightButton) ||
+        (((QMouseEvent *)pEvent)->button() == QMouseEvent::MidButton))
+        return true;
     else if (pEvent->type() == QEvent::KeyPress) {
         if (((QKeyEvent *)pEvent)->key() == Qt::Key_Tab) {          // Handle tab key
             if (this->getEdition() >= 0) {

CVSTrac 2.0.1