[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/karbon/plugins/tools
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2007-03-31 20:07:06
Message-ID: 1175371626.111906.10624.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 648605 by zachmann:

o accept and ignore keyPressEvent


 M  +6 -0      KarbonPencilTool.cpp  


--- trunk/koffice/karbon/plugins/tools/KarbonPencilTool.cpp #648604:648605
@@ -111,6 +111,12 @@
 
 void KarbonPencilTool::keyPressEvent(QKeyEvent *event)
 {
+    if ( m_shape ) {
+        event->accept();
+    }
+    else {
+        event->ignore();
+    }
 }
 
 void KarbonPencilTool::activate( bool temporary )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic