Revision: 6356
Author: nogu.dev
Date: Sun May  2 03:40:04 2010
Log: * qt4/immodule/candidatewindow.cpp
  - (CandidateWindow::eventFilter):
    Move position of moveEvent's declaration.
http://code.google.com/p/uim/source/detail?r=6356

Modified:
 /trunk/qt4/immodule/candidatewindow.cpp

=======================================
--- /trunk/qt4/immodule/candidatewindow.cpp     Sat May  1 17:34:48 2010
+++ /trunk/qt4/immodule/candidatewindow.cpp     Sun May  2 03:40:04 2010
@@ -604,7 +604,6 @@
 {
     if ( obj == window ) {
         if ( event->type() == QEvent::Move ) {
-            QMoveEvent *moveEvent = static_cast<QMoveEvent *>( event );
             QWidget *widget = QApplication::focusWidget();
             if ( widget ) {
                 QRect rect
@@ -612,6 +611,7 @@
                 QPoint p = widget->mapToGlobal( rect.topLeft() );
                 layoutWindow( p, rect );
             } else {
+                QMoveEvent *moveEvent = static_cast<QMoveEvent *>( event );
                 move( pos() + moveEvent->pos() - moveEvent->oldPos() );
             }
         }

Reply via email to