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

List:       kde-commits
Subject:    KDE/kdenetwork/kpf/src
From:       Unai Garro <ugarro () telefonica ! net>
Date:       2005-07-03 22:26:19
Message-ID: 1120429579.753291.2019.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 431328 by uga:

Fix the rest of the events in the same way


 M  +7 -7      AppletItem.cpp  


--- trunk/KDE/kdenetwork/kpf/src/AppletItem.cpp #431327:431328
@@ -114,12 +114,12 @@
 
       case QEvent::MouseButtonRelease:
         {
-          QMouseEvent * e = dynamic_cast<QMouseEvent *>(ev);
+          QMouseEvent * e = static_cast<QMouseEvent *>(ev);
 
           if (0 == e)
           {
             kpfDebug
-              << "Hmm, should have been able to dynamic_cast here." << endl;
+              << "Hmm, should have been able to static_cast here." << endl;
             break;
           }
 
@@ -155,7 +155,7 @@
           if (0 == e)
           {
             kpfDebug
-              << "Hmm, should have been able to dynamic_cast here." << endl;
+              << "Hmm, should have been able to static_cast here." << endl;
             break;
           }
 
@@ -205,12 +205,12 @@
 
       case QEvent::DragEnter:
         {
-          QDragEnterEvent * e = dynamic_cast<QDragEnterEvent *>(ev);
+          QDragEnterEvent * e = static_cast<QDragEnterEvent *>(ev);
 
           if (0 == e)
           {
             kpfDebug
-              << "Hmm, should have been able to dynamic_cast here." << endl;
+              << "Hmm, should have been able to static_cast here." << endl;
             break;
           }
 
@@ -234,12 +234,12 @@
 
       case QEvent::Drop:
         {
-          QDropEvent * e = dynamic_cast<QDropEvent *>(ev);
+          QDropEvent * e = static_cast<QDropEvent *>(ev);
 
           if (0 == e)
           {
             kpfDebug
-              << "Hmm, should have been able to dynamic_cast here." << endl;
+              << "Hmm, should have been able to static_cast here." << endl;
             break;
           }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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