OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_table.cpp versions 1.12 and 1.13
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_table.cpp 1.12 -> 1.13

--- as_table.cpp 2002/12/13 18:55:09     1.12
+++ as_table.cpp 2002/12/13 19:36:24     1.13
@@ -84,13 +84,17 @@
             }
             return true; // Handle the shift tab key event and cancel its progress
         }
+        else if (((QKeyEvent *)pEvent)->key() == Qt::Key_Up && this->getEdition() >= 0) // Handle up key
+            return true;                                            // Capture
+        else if (((QKeyEvent *)pEvent)->key() == Qt::Key_Down && this->getEdition() >= 0) // Handle down key
+            return true;                                            // Capture
         else if (((QKeyEvent *)pEvent)->key() == Qt::Key_Escape)    // Handle escape key
             this->setEdition();
 
         // Forward incompletely handled key events
         return QTable::eventFilter(pObject, pEvent);
     }
-    else                    // Default behaviour is to pass the event onwards
+    else // Default behaviour is to pass the event onwards
         return QTable::eventFilter(pObject, pEvent);
 }
 

CVSTrac 2.0.1